Context7 Platform -- Up-to-date docs for AI agents
---
title: Icons
description: Add an icon inline with text
---
Icons can come from the active icon library or a local SVG.
## Usage
```mdx
<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`.
## Example
<Icon icon="book" color="#10B981" size={24} />