#232
LinkCard, CardGrid and MethodBadge
A CardGrid with two LinkCards, followed by a row of five MethodBadges for the HTTP verbs.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "LinkCard, CardGrid and MethodBadge" pattern (@codeatlasdev/ui demo #232, docs-kit/docs) in my app.
Call get_demo({ ids: ["#232"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Docs landing pages linking to guides, and API references that tag endpoints with their HTTP method.
Keep these library parts, with the props and tokens the demo uses:
- CardGrid, LinkCard, MethodBadge from "@codeatlasdev/ui"
Behaviour to keep:
- `<CardGrid>` contains 2 `LinkCard` entries: Quick start and Webhooks
- Each `LinkCard` sets `title`, `description` and `href="#top"`
- `<MethodBadge method="GET" />`
- Other badges: `method="POST"`, `method="PUT"`, `method="PATCH"`, `method="DELETE"`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- CardGrid
@codeatlasdev/ui - LinkCard
@codeatlasdev/ui - MethodBadge
@codeatlasdev/ui
How it is built
- `<CardGrid>` contains 2 `LinkCard` entries: Quick start and Webhooks
- Each `LinkCard` sets `title`, `description` and `href="#top"`
- `<MethodBadge method="GET" />`
- Other badges: `method="POST"`, `method="PUT"`, `method="PATCH"`, `method="DELETE"`
Related
Loading source.