Icons currently have a set size of 24x24 pixels.
caret
<CaretIcon />
Copycart
<CartIcon />
Copyplus
<PlusIcon />
Copyminus
<MinusIcon />
Copybag empty
<BagEmptyIcon />
Copyalarm on
<AlarmOnIcon />
Copyclose
<CloseIcon style={{
"padding": 8
}} />
Copyclose (thick)
<CloseIcon style={{
"padding": 8
}} type={"thick"} />
Copyreload
<CloseIcon style={{
"padding": 8
}} />
Copyrealod (thick)
<CloseIcon style={{
"padding": 8
}} type={"thick"} />
CopyProps can be added to customize the icon color.
buffy orange cart
<CartIcon color={"buffyOrange"} />
Copyeucalyptus plus
<PlusIcon color={"eucalyptus"} />
CopyAdditionally, a prop for click handler can be provided.
click the cart icon!
<CartIcon onClick={()=>alert("click on cart")} />
CopyName | Description | Type | Required | Default |
---|---|---|---|---|
color | Design system color of icon. | string | false | "defaultText" |
width | Icon width in pixels. | number | false | 32 |
onClick | Function that executes when clicked. | function | false | ()=>{} |
className | List of classes for this element. | string | array | false | "" |