Skip to main content

Icon

The Icon component displays an SVG icon as a React Component with a given icon name and size.

Examples

<Icon size="small" name="placeholder" />

Props

NameTypeDefault ValueRequiredDescription
size"small" | "medium" | "large" | IconSize | "xlarge" | "xxlarge"IconSize.MediumNoHow large should the icon be?

Enums

IconSize

KeyValue
Small"small"
Medium"medium"
Large"large"
XLarge"xlarge"
XXLarge"xxlarge"