跳转到内容
搜索文档

卡片

最后更新 查看 MarkdownAgent 设置

The Card component is used 30 times on 28 pages.

See all examples of pages that use Card

Used 30 times.

Pages

Partials

卡片是 Nimbus 提供的内置组件。

卡片

import { Card } from "~/components";

<Card title="Check this out" icon="ph:puzzle-piece">
	Interesting content you want to highlight.
</Card>

列表卡片

import { ListCard } from "~/components";

<ListCard title="Links" icon="ph:puzzle-piece">

- foo
- bar
- baz

</ListCard>

链接标题卡片

import { LinkTitleCard } from "~/components";

<LinkTitleCard
	title="Check this out"
	icon="ph:puzzle-piece"
	href="/style-guide/components/cards/"
>
	Interesting content you want to highlight.
</LinkTitleCard>

卡片图标

(可选)您可以从 Starlight 的 Icons 中为 cards 选择一个对应的图标。

这篇文档对您有帮助吗?