Learn about the Icon component for use in UI extensions.
Icon
component to render a visual icon within other components. It can generally be used inside most components, excluding ones that don’t support child components (e.g., the Input
component does not support icons).
Prop | Type | Description |
---|---|---|
name Required | String | Sets the icon to display. See all available icons. |
size | 'small' | 'medium' | 'large' | By default, the size of the icon is set automatically based on the parent component. If you need to override the default size, you can specify one to use instead. |
screenReaderText | String | Sets the text that screen readers will read for the icon. |
or {" "}
as shown below.
screenReaderText
prop to convey the icon’s meaning for users with screen readers.
name
values.