Use the named Icon
components from the pcln-icons
package for SVG icons.
<Flame color='orange' />
<Chat
color='orange'
title='Airplane Icon'
titleId='unique-airplane-title-id'
desc='Airplane Icon description'
descId='unique-airplane-desc-id'
/>
aria-hidden="true"
and focusable="false"
are set by default to icons.
When a title
prop is passed, aria-hidden
is set to false.
In order to support older browsers, please pass in a titleId
To add a description, please pass in desc
and descId
.
<desc id="{unique-desc-id}">{description}</desc>
is generated when desc
and descId
props are passed
Prop | Type | Description |
---|---|---|
size | number | Width and height in pixels |
color | string | A color key from theme.colors |
title | string | Title for to the icon |
titleId | string | Unique ID for the <title> |
desc | string | Description for the icon |
descId | string | Unique ID for the <desc> |
For a full list of available icons, see Iconography.