BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tdds/card

Card

tdds/card
FreeComponent

Card component with Treasury border styling

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/card.json

Source

registry/ui/card.tsxraw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/card.json
1import * as React from "react"
2
3import { cn } from "@/lib/utils"
4
5function Card({
6 className,
7 size = "default",
8 ...props
9}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
10 return (
11 <div
12 data-slot="card"
13 data-size={size}
14 className={cn("border border-treasury-base-darkest bg-card text-card-foreground gap-6 overflow-hidden py-6 text-sm has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 group/card flex flex-col", className)}
15 {...props}
16 />
17 )
18}
19
20function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
21 return (
22 <div
23 data-slot="card-header"
24 className={cn(
25 "gap-1 px-6 group-data-[size=sm]/card:px-4 [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
26 className
27 )}
28 {...props}
29 />
30 )
31}
32
33function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
34 return (
35 <div
36 data-slot="card-title"
37 className={cn("text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", className)}
38 {...props}
39 />
40 )
41}
42
43function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
44 return (
45 <div
46 data-slot="card-description"
47 className={cn("text-muted-foreground text-sm", className)}
48 {...props}
49 />
50 )
51}
52
53function CardAction({ className, ...props }: React.ComponentProps<"div">) {
54 return (
55 <div
56 data-slot="card-action"
57 className={cn(
58 "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
59 className
60 )}
61 {...props}
62 />
63 )
64}
65
66function CardContent({ className, ...props }: React.ComponentProps<"div">) {
67 return (
68 <div
69 data-slot="card-content"
70 className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
71 {...props}
72 />
73 )
74}
75
76function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
77 return (
78 <div
79 data-slot="card-footer"
80 className={cn("px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4 flex items-center", className)}
81 {...props}
82 />
83 )
84}
85
86export {
87 Card,
88 CardHeader,
89 CardFooter,
90 CardTitle,
91 CardAction,
92 CardDescription,
93 CardContent,
94}

What it pulls in

Other registry items

  • utils

Files it writes

  • registry/ui/card.tsx

Facts

Registry
tdds
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

icy-river-012b1601e.6.azurestaticapps.net gjohnsx/ttb-label-verification on GitHub Raw registry item This item as JSON

More from tdds

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiontddsComponentsFree2 deps
AlertalerttddsComponentsFree1 dep
Alert Dialogalert-dialogtddsComponentsFree1 dep
AvataravatartddsComponentsFree1 dep
BadgebadgetddsComponentsFree1 dep
BreadcrumbbreadcrumbtddsComponentsFree2 deps
ButtonbuttontddsComponentsFree2 deps
Button Groupbutton-grouptddsComponentsFree1 dep
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