跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

卡片

最后更新 查看 MarkdownAgent 设置

The Card component is used 33 times on 31 pages.

See all examples of pages that use Card

Used 33 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/cf/ListCard.astro";
    
    <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/build-the-page/components/cards/"
    >
    	Interesting content you want to highlight.
    </LinkTitleCard>

    卡片图标

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

    这篇文档对您有帮助吗?