Action Card
openstatus-dashboard/action-cardFreeComponent
An action card component.
Install it
npx shadcn@latest add https://template.openstatus.dev/r/action-card.jsonSource
1import {2 Card,3 CardContent,4 CardDescription,5 CardFooter,6 CardHeader,7 CardTitle,8} from "@/components/ui/card";9import { cn } from "@/lib/utils";1011export function ActionCard({12 children,13 className,14 ...props15}: React.ComponentProps<"div">) {16 return (17 <Card18 className={cn("group/action-card gap-4 py-4 shadow-none", className)}19 {...props}20 >21 {children}22 </Card>23 );24}2526export function ActionCardHeader({27 children,28 className,29 ...props30}: React.ComponentProps<"div">) {31 return (32 <CardHeader className={cn("px-4 [.border-b]:pb-4", className)} {...props}>33 {children}34 </CardHeader>35 );36}3738export function ActionCardGroup({39 children,40 className,41 ...props42}: React.ComponentProps<"div">) {43 return (44 <div className={cn("grid gap-4", className)} {...props}>45 {children}46 </div>47 );48}4950export function ActionCardTitle({51 children,52 ...props53}: React.ComponentProps<"div">) {54 return <CardTitle {...props}>{children}</CardTitle>;55}5657export function ActionCardDescription({58 children,59 ...props60}: React.ComponentProps<"div">) {61 return <CardDescription {...props}>{children}</CardDescription>;62}6364export function ActionCardContent({65 children,66 className,67 ...props68}: React.ComponentProps<"div">) {69 return (70 <CardContent className={cn("px-4", className)} {...props}>71 {children}72 </CardContent>73 );74}7576export function ActionCardFooter({77 children,78 className,79 ...props80}: React.ComponentProps<"div">) {81 return (82 <CardFooter className={cn("px-4 [.border-t]:pt-4", className)} {...props}>83 {children}84 </CardFooter>85 );86}
What it pulls in
Other registry items
Files it writes
More from OpenStatus Dashboard
All 6 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Empty stateempty-state | OpenStatus Dashboard | Components | Free | no deps | |
| Feedbackfeedback | OpenStatus Dashboard | Components | Free | 6 deps | |
| Form Cardform-card | OpenStatus Dashboard | Components | Free | 1 dep | |
| Metric Cardmetric-card | OpenStatus Dashboard | Components | Free | 2 deps | |
| Sectionsection | OpenStatus Dashboard | Components | Free | no deps |
