FEAST // NEXTUI
Card
Composable dark card with header, body, and footer sub-components in the FEAST culinary aesthetic.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Card>
<CardHeader>Seasonal menu</CardHeader>
<CardBody>Spring tasting flight, five courses.</CardBody>
</Card>Variants
<Card><CardHeader>Seasonal menu</CardHeader><CardBody>Spring tasting flight, five courses.</CardBody></Card>
<Card><CardHeader>Wine pairing</CardHeader><CardBody>Curated selection from our cellar.</CardBody><CardFooter>Ask your sommelier.</CardFooter></Card>
<Card><CardBody>Body only card.</CardBody></Card>
Source
TSX
import { cn } from '@/lib/utils'
interface CardProps {
className?: string
children: React.ReactNode
}
export function Card({ className, children }: CardProps): React.JSX.Element {
return (
<div className={cn('feast-card', className)}>
{children}
</div>
)
}
export function CardHeader({ className, children }: CardProps): React.JSX.Element {
return (
<div className={cn('feast-card-header', className)}>
{children}
</div>
)
}
export function CardBody({ className, children }: CardProps): React.JSX.Element {
return (
<div className={cn('feast-card-body', className)}>
{children}
</div>
)
}
export function CardFooter({ className, children }: CardProps): React.JSX.Element {
return (
<div className={cn('feast-card-footer', className)}>
{children}
</div>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from FEAST // NEXT
Button
Rich dark-mode button with gold-accented primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.
Badge
Gold-toned badge for category and status labels in the FEAST dark culinary palette.
Text
Polymorphic text primitive with body, caption, label, and code variants styled for the FEAST dark culinary palette.