An icon rendered on a circle background with PlumaLabel styles.
The component can be imported via:
The color argument can be used to customize the color of the icon and its
background, the default being grey:
The shape argument can be used to customize the shape of the icon background, the default being circle:
The size argument can be used to customize the size of the icon and its background padding, the default being sm:
By default, aria-hidden is applied to all label icons. The best practice is to only use icons in
context. That is, icons should only be used for presentation, while the text they're surrounded by is the real
source of context.
Many icons aren't universally recognized by everyone, which is one of the reasons why it's important to not use icons on their own.
If an icon does need to be used without context, the component accepts a label argument. When
present, aria-hidden will be removed, and instead aria-label will be applied to the
icon.
PlumaLabelIcon extends BoxDefault:'grey'
The color of the icon and its background.
An accessible label, which will be shown in the aria-label attribute. Use only if there is no additional context for what the icon represents (for example, if the icon is used standalone in place of a text label). When accessible context is already present, leave this prop empty, which makes the icon decorative and hides it from screen readers.
The name of the icon to render.
Default:'circle'
The shape of the icon.
Default:'sm'
The size of the icon.