| title | Icons | ||
|---|---|---|---|
| description | Add an icon inline with text | ||
| product | Context7 | ||
| section | docs | ||
| source_url | https://context7.com/docs/docs7/components/icons | ||
| fetched | 2026-09-26 | ||
| tags |
|
Add an icon inline with text
Icons can come from the active icon library or a local SVG.
<Icon icon="book" color="#10B981" size={24} />
<Icon icon="/logo/mark.svg" size={24} />Use iconType to select an icon style. The active library comes from icons.library in docs.json.