Examples
Type Definitions
object
# IconProps
Prop Types of an Icon component.
Apart from props defined below it extends all ColorProps and SpaceProps
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
... |
string
|
<optional> |
Other props from ColorProps and SpaceProps |
icon |
string
|
<optional> |
CamelCased name of an icon from https://www.carbondesignsystem.com/guidelines/icons/library/ |
size |
16
|
20
|
24
|
32
|
<optional> |
Size variant. Default to 16 |
color |
string
|
<optional> |
Icon color |
bg |
string
|
<optional> |
Icon background |
rounded |
boolean
|
<optional> |
If background should be rounded |
spin |
boolean
|
<optional> |
Indicates if given icons should spin |