Files
mintlify__docs/snippets/zh/icons-optional.mdx
locadex-agent[bot] 5ae7caa887 docs(locadex): add translations (#2897)
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
2026-01-27 10:33:43 -08:00

25 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.
<ResponseField name="icon" type="string">
要显示的图标。
可选值:
* [Font Awesome](https://fontawesome.com/icons) 图标名称(如果你在 `docs.json` 中将 `icons.library` [属性](/zh/organize/settings#param-icons) 设置为 `fontawesome`)
* [Lucide](https://lucide.dev/icons) 图标名称(如果你在 `docs.json` 中将 `icons.library` [属性](/zh/organize/settings#param-icons) 设置为 `lucide`)
* 指向外部托管图标的 URL
* 项目中图标文件的路径
* 用花括号包裹的 SVG 代码
对于自定义 SVG 图标:
1. 使用 [SVGR 转换器](https://react-svgr.com/playground/) 转换你的 SVG。
2. 将 SVG 代码粘贴到 SVG 输入框。
3. 从 JSX 输出框中复制完整的 `<svg>...</svg>` 元素。
4. 用花括号包裹可用于 JSX 的 SVG 代码:`icon={<svg ...> ... </svg>}`。
5. 根据需要调整 `height` 和 `width`。
</ResponseField>
<ResponseField name="iconType" type="string">
[Font Awesome](https://fontawesome.com/icons) 的图标样式。仅在使用 Font Awesome 图标时生效。
可选值:`regular`、`solid`、`light`、`thin`、`sharp-solid`、`duotone`、`brands`。
</ResponseField>