Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    Card

    Groups content and actions about one subject. Three surfaces: elevated, filled and outlined. A card can also be one big control, like a link to an article.

    Install

    npx shadcn@latest add @nelumbo/card

    Variants

    Elevated is the default and floats on a soft shadow. Filled sits on a tonal surface, for grouping inside a page. Outlined is flat with a hairline, for dense or repeated layouts.

    elevated
    Soft shadow, card surface.
    filled
    Tonal surface, no shadow.
    outlined
    Hairline border, flat.

    Header, content and actions

    The header has a slot for an action in the corner. Footers hold buttons; put the main action last.

    Storage
    18.4 GB of 25 GB used
    PhotosDocumentsOther

    With media

    CardMedia placed first runs edge to edge and takes the card's corners. Give it an aspect ratio so the layout doesn't jump while an image loads.

    Nelumbo 1.0
    Tokens, springs and the full button family, ready for shadcn.
    Studio session
    Thursday, 10:00 to 11:30
    Inset media keeps the padding and gets its own corners.

    Interactive

    Pass interactive and asChild with a link: the whole card becomes one link. Hover shows a faint overlay (elevated cards also lift), and pressing gives the same springy press as buttons. Don't nest other buttons inside.

    Small

    16px padding, for dashboards and dense grids.

    Visitors
    24.8k+12%
    Sign-ups
    1,204+4%
    Churn
    2.1%−0.3%
    Revenue
    $48.2k+9%

    Usage

    import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter, CardMedia } from "@/components/ui/card"​<Card>  <CardMedia><img src="/cover.jpg" alt="" /></CardMedia>  <CardHeader>    <CardTitle>Nelumbo 1.0</CardTitle>    <CardDescription>Release notes</CardDescription>    <CardAction><IconButton icon="more_vert" label="More" /></CardAction>  </CardHeader>  <CardFooter><Button>Read</Button></CardFooter></Card>​<Card asChild interactive variant="outlined">  <Link href="/guides/motion">…</Link></Card>

    Props

    PropTypeDefaultNotes
    variant"elevated" | "filled" | "outlined""elevated"
    size"default" | "sm""default"24px or 16px padding
    interactivebooleanfalseHover, focus and press states for a card that is one control
    asChildbooleanfalseRender as the child element, e.g. a link
    CardMedia insetbooleanfalseKeep the padding and round the media's own corners