@manhphi1309/card
v0.3.4
Published
A beautifully designed, accessible card component for your React application.
Readme
@manhphi1309/card
A beautifully designed, accessible card component for your React application.
Subcomponents
This package provides the following components:
CardCardHeaderCardFooterCardTitleCardDescriptionCardActionCardContent
Dependencies
This package relies on:
@manhphi1309/button@manhphi1309/utilsclsxtailwind-merge
Installation
npm install @manhphi1309/cardUsage Example
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
CardFooter,
} from "@manhphi1309/card"
import { Button } from "@manhphi1309/button"
export default function Example() {
return (
<Card className="w-[350px]">
<CardHeader>
<CardTitle>Create project</CardTitle>
<CardDescription>Deploy your new project in one-click.</CardDescription>
</CardHeader>
<CardContent>
<p>Form goes here...</p>
</CardContent>
<CardFooter className="flex justify-between">
<Button variant="outline">Cancel</Button>
<Button>Deploy</Button>
</CardFooter>
</Card>
)
}