Icon
An icon component, which renders any icon from Square’s Market Design System.
Component render
<Icon variant="<variant>" />
Properties
Property | Type | Description |
---|---|---|
variant | enum | Required. The variant to display. The set of variants can be found here. |
description | string | The description of the icon you are displaying. If not provided, a default description for the icon will be provided. |
height | string | The height of the image. |
slot | string | An optional slot attribute that can be added to the component. Certain components require the slot attribute to properly place it. |
title | string | The title of the string. |
width | string | The width of the image. |