Card
A surface that groups related content, with the edge and corner of Kino’s other surfaces. A card that leads somewhere stretches its title’s link over the whole of it.
Examples
Default
A header with a title, a description and an action at its end, the content, and a tinted footer that reaches the bottom edge.
Section
A CardSection runs to the card’s edges, here a group of items (opens in a new tab) that meets the header’s border.
Links
A CardLink in the title makes the whole card lead somewhere: its border darkens on hover and it takes the focus ring, while the link’s name stays the title.
Picture
A picture in a CardSection at the top takes the card’s corner; an AspectRatio inside gives it its shape.
Installation
npx shadcn@latest add https://kinoui.com/r/card.json- Files
lib/reduce-motion.tslib/resize.tslib/scroll.tslib/panel.tsxcomponents/kino/card.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Card
CardTitle
CardSection
CardLink
Data attributes
Accessibility
- The title is a heading,
<h3>unlessrendergives it the page’s level, and put a list of cards in a<ul>, so a screen reader can move from card to card. - A card that leads somewhere has one link, around its title, and its hit area covers the card: the link’s name is the title alone, never the whole card’s text. Controls in
CardActionandCardFootersit above it and stay their own targets; keep other controls out of a linked card. - The link’s focus ring is drawn around the whole card. In forced colours the link keeps its own outline, and the card keeps its border.
- A picture that only decorates has an empty
alt.
