Skip to content

    Browse components

    Card

    Composable card surface (header, title, description, content, footer) with an optional hover lift and a rotating gradient border.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/card

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/card.json

    Usage

    import { Card } from "@/components/ui/card";
    
    <Card interactive gradientBorder>
      <CardHeader>
        <CardTitle>Pro plan</CardTitle>
        <CardDescription>For growing teams.</CardDescription>
      </CardHeader>
      <CardContent>...</CardContent>
      <CardFooter>...</CardFooter>
    </Card>

    Props

    PropTypeDefaultDescription
    interactivebooleanfalseLift and deepen the shadow on hover or focus inside.
    gradientBorderbooleanfalsePrimary-tinted conic border that spins while hovered.
    childrenReactNode—CardHeader, CardTitle, CardDescription, CardContent, CardFooter.
    classNamestring—Extra classes for the root element.