Icon
Starlight provides a set of common icons that you can display in your content using the <Icon>
component.
Each <Icon>
requires a name
and can optionally include a label
to provide context for screen readers. The size
and color
attributes can be used to adjust the icon’s appearance using CSS units and color values.
Example
Keystatic config
To add this Starlight component as a Keystatic content component, register it as a content component with the following schema:
IconList
We have a small script which dynamically generates a list of Starlight icons for Keystatic: