Icons
import { Render } from "~/components";
There are two icon components which pull from two different icon sets.
Icon
The Icon component from Nimbus is available as a standalone component.
Primarily, this is used for Cloudflare product icons which are stored in /src/icons/*.svg.
import { Icon } from "~/components";
<Icon name="workers" class="text-5xl text-orange-400" />
Card and LinkCard
Components like Card and LinkCard accept a plain icon string prop — any iconify icon name.
import { Card, LinkCard } from "~/components";
<Card title="Example" icon="ph:rocket-launch" />
<LinkCard title="Example" href="/workers/" icon="ph:rocket-launch" />
Icon library
<Render file="icons" product="style-guide" params={{ component: "cards or tabs", }} />
这篇文档对你有帮助吗?
谢谢你的反馈!