BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/card

Card

uiable/card
FreeComponent

Card component.

Live preview

live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uiable.com/r/card.json

Source

src/components/ui/card.tsxuiable.com/r/card.json
1import { ComponentProps } from "react";
2
3import { cn } from "@/lib/utils";
4
5function Card({
6 className,
7 size = "default",
8 ...props
9}: ComponentProps<"div"> & { size?: "default" | "sm" }) {
10 return (
11 <div
12 data-slot="card"
13 data-size={size}
14 className={cn(
15 "group/card rounded-lg border relative border-border mb-6 bg-card",
16 className
17 )}
18 {...props}
19 />
20 );
21}
22
23function CardHeader({ className, ...props }: ComponentProps<"div">) {
24 return (
25 <div
26 data-slot="card-header"
27 className={cn(
28 "p-[25px] border-b border-border group-data-[size=sm]/card:p-4",
29 className
30 )}
31 {...props}
32 />
33 );
34}
35
36function CardTitle({ className, ...props }: ComponentProps<"div">) {
37 return (
38 <div
39 data-slot="card-title"
40 className={cn("h5 font-semibold", className)}
41 {...props}
42 />
43 );
44}
45
46function CardDescription({ className, ...props }: ComponentProps<"div">) {
47 return (
48 <div
49 data-slot="card-description"
50 className={cn("text-muted-foreground text-sm", className)}
51 {...props}
52 />
53 );
54}
55
56function CardAction({ className, ...props }: ComponentProps<"div">) {
57 return (
58 <div
59 data-slot="card-action"
60 className={cn(
61 "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
62 className
63 )}
64 {...props}
65 />
66 );
67}
68
69function CardContent({ className, ...props }: ComponentProps<"div">) {
70 return (
71 <div
72 data-slot="card-content"
73 className={cn("p-[25px] group-data-[size=sm]/card:p-4", className)}
74 {...props}
75 />
76 );
77}
78
79function CardFooter({ className, ...props }: ComponentProps<"div">) {
80 return (
81 <div
82 data-slot="card-footer"
83 className={cn(
84 "px-6.25 py-4 border-t border-border group-data-[size=sm]/card:px-4",
85 className
86 )}
87 {...props}
88 />
89 );
90}
91
92export {
93 Card,
94 CardHeader,
95 CardFooter,
96 CardTitle,
97 CardAction,
98 CardDescription,
99 CardContent
100};

Files it writes

  • src/components/ui/card.tsx

Facts

Registry
uiable
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 712 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
AlertalertuiableComponentsFree1 dep
Alert Dialogalert-dialoguiableComponentsFree1 dep
Aspect Ratioaspect-ratiouiableComponentsFreeno deps
AttachmentattachmentuiableComponentsFree2 deps
AvataravataruiableComponentsFree1 dep
BadgebadgeuiableComponentsFree2 deps
BreadcrumbbreadcrumbuiableComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex