BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Roi UI/card

Card

roi-ui/card
FreeItem

A container component for displaying content.

Install it

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

Source

registry/brook/ui/card/card.tsxroiui.com/r/card.json
1import { cva, type VariantProps } from "class-variance-authority";
2import Image from "next/image";
3import { cn } from "@/lib/utils";
4import styles from "./card.module.css";
5
6const cardVariants = cva(styles.card, {
7 variants: {
8 variant: {
9 default: "",
10 lift: styles.cardLift,
11 },
12 },
13 defaultVariants: {
14 variant: "default",
15 },
16});
17
18function Card({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof cardVariants>) {
19 return <div className={cn(cardVariants({ variant }), className)} data-slot="card" {...props} />;
20}
21
22function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
23 return <div className={cn(styles.header, className)} data-slot="card-header" {...props} />;
24}
25
26function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
27 return <div className={cn(styles.title, className)} data-slot="card-title" {...props} />;
28}
29
30function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
31 return <div className={cn(styles.description, className)} data-slot="card-description" {...props} />;
32}
33
34function CardContent({ className, ...props }: React.ComponentProps<"div">) {
35 return <div className={cn(styles.content, className)} data-slot="card-content" {...props} />;
36}
37
38function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
39 return <div className={cn(styles.footer, className)} data-slot="card-footer" {...props} />;
40}
41
42function CardImage({
43 className,
44 src,
45 alt,
46 ...props
47}: {
48 className?: string;
49 src: string;
50 alt: string;
51} & Omit<React.ComponentProps<typeof Image>, "src" | "alt" | "width" | "height" | "children">) {
52 return (
53 <Image
54 alt={alt}
55 className={cn(styles.image, className)}
56 data-slot="card-image"
57 height={300}
58 src={src}
59 width={300}
60 {...props}
61 />
62 );
63}
64
65function CardImageContent({ className, ...props }: React.ComponentProps<"div">) {
66 return <div className={cn(styles.imageContent, className)} data-slot="card-image-content" {...props} />;
67}
68
69function CardIcon({ className, children, ...props }: React.ComponentProps<"div">) {
70 return (
71 <div className={cn(styles.icon, className)} data-slot="card-icon" {...props}>
72 {children}
73 </div>
74 );
75}
76
77function CardAction({ className, ...props }: React.ComponentProps<"div">) {
78 return <div className={cn(styles.action, className)} data-slot="card-action" {...props} />;
79}
80
81export {
82 Card,
83 CardAction,
84 CardContent,
85// … truncated

What it pulls in

npm packages

  • class-variance-authority

Files it writes

  • registry/brook/ui/card/card.tsx
  • registry/brook/ui/card/card.module.css

Facts

Registry
Roi UI
Type
registry:item
Access
Free
Files written
2
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

roiui.com preetecool/roi-ui on GitHub Raw registry item This item as JSON

More from Roi UI

All 123 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionRoi UIOtherFreeno deps · 2 files
Accordion (Tailwind)accordion-tailwindRoi UIOtherFreeno deps
AI Chatai-chatRoi UIOtherFreeno deps · 2 files
AI Chat (Tailwind)ai-chat-tailwindRoi UIOtherFreeno deps
AlertalertRoi UIOtherFree1 dep · 2 files
Alert Dialogalert-dialogRoi UIOtherFreeno deps · 2 files
Alert Dialog (Tailwind)alert-dialog-tailwindRoi UIOtherFreeno deps
Alert (Tailwind)alert-tailwindRoi UIOtherFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex