Files
mintlify__docs/zh/components/icons.mdx
locadex-agent[bot] bbb1a08ed3 docs(locadex): update translations (#1778)
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
2025-11-14 14:44:09 -08:00

45 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "图标"
description: "可使用来自流行库、外部 URL,或项目内文件的图标。"
keywords: ["Font Awesome", "Lucide", "SVGs"]
---
import IconsRequired from "/snippets/zh/icons-required.mdx";
使用来自 Font Awesome、Lucide、SVG、外部 URL 或项目文件的图标,丰富你的文档。
<Icon icon="flag" size={32} />
```mdx Icon example
<Icon icon="flag" size={32} />
```
<div id="inline-icons">
## 行内图标
</div>
当在句子、段落或标题中使用时,图标会以内联形式呈现。 <Icon icon="flag" iconType="solid" /> 你可以将图标用于装饰,或用于强化视觉重点。
```markdown Inline icon example
图标在句子、段落或标题中使用时会内联显示。<Icon icon="flag" iconType="solid" /> 使用图标可以起到装饰作用或增强视觉效果。
```
<div id="properties">
## 属性
</div>
<IconsRequired />
<ResponseField name="color" type="string">
icon 的颜色,使用十六进制色值(例如 `#FF5733`)。
</ResponseField>
<ResponseField name="size" type="number">
icon 的尺寸(像素)。
</ResponseField>
<ResponseField name="className" type="string">
应用于 icon 的自定义 CSS 类名。
</ResponseField>