mirror of
https://github.com/upstash/context7.git
synced 2026-09-14 19:09:34 +08:00
6d777619c2
Co-authored-by: Context7 Agent <docs-agent@context7.com> Co-authored-by: Josh <josh@upstash.com> Co-authored-by: context7[bot] <236830434+context7[bot]@users.noreply.github.com>
20 lines
397 B
Plaintext
20 lines
397 B
Plaintext
---
|
|
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} />
|