Displaysrc/components/ui/card.tsx

Card

A flexible container for grouped content and actions.

Preview

Login to your account
Enter your email below to login to your account

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Card } from "@/components/ui/card"

export function Example() {
  return <Card>Card</Card>
}

API Reference

ExportPurpose
CardComposable part exported by `@/components/ui/card`.