BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Pixelact UI/card

Pixelact Card

pixelact-ui/card
FreeComponent

A simple card component.

Live preview

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

Install it

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

Source

components/ui/pixelact-ui/card.tsxpixelactui.com/r/card.json
1import { type VariantProps, cva } from "class-variance-authority";
2
3import { cn } from "@/lib/utils";
4
5import {
6 Card as ShadcnCard,
7 CardAction as ShadcnCardAction,
8 CardContent as ShadcnCardContent,
9 CardDescription as ShadcnCardDescription,
10 CardFooter as ShadcnCardFooter,
11 CardHeader as ShadcnCardHeader,
12 CardTitle as ShadcnCardTitle,
13} from "@/components/ui/card";
14
15import "@/components/ui/pixelact-ui/styles/styles.css";
16
17export const cardVariants = cva("", {
18 variants: {
19 font: {
20 normal: "",
21 pixel: "pixel-font",
22 },
23 },
24 defaultVariants: {
25 font: "pixel",
26 },
27});
28
29export interface CardProps
30 extends React.ComponentProps<"div">,
31 VariantProps<typeof cardVariants> {
32 asChild?: boolean;
33}
34
35function Card({ ...props }: CardProps) {
36 const { className, font } = props;
37
38 return (
39 <ShadcnCard
40 {...props}
41 className={cn(
42 "rounded-none border-0 bg-card shadow-(--pixel-box-shadow) box-shadow-margin",
43 cardVariants({ font }),
44 className
45 )}
46 />
47 );
48}
49
50function CardHeader({ ...props }: CardProps) {
51 const { className } = props;
52
53 return <ShadcnCardHeader className={cn("", className)} {...props} />;
54}
55
56function CardTitle({ ...props }: CardProps) {
57 const { className } = props;
58
59 return (
60 <ShadcnCardTitle
61 className={cn("font-normal text-lg", className)}
62 {...props}
63 />
64 );
65}
66
67function CardDescription({ ...props }: CardProps) {
68 const { className } = props;
69
70 return <ShadcnCardDescription className={cn(className)} {...props} />;
71}
72
73function CardAction({ ...props }: CardProps) {
74 const { className } = props;
75
76 return <ShadcnCardAction className={cn(className)} {...props} />;
77}
78
79function CardContent({ ...props }: CardProps) {
80 const { className } = props;
81
82 return <ShadcnCardContent className={cn(className)} {...props} />;
83}
84
85function CardFooter({ ...props }: CardProps) {
86 const { className } = props;
87
88 return (
89 <ShadcnCardFooter
90 data-slot="card-footer"
91 className={cn(className)}
92 {...props}
93 />
94 );
95}
96
97export {
98 Card,
99 CardHeader,
100 CardFooter,
101 CardTitle,
102 CardAction,
103 CardDescription,
104 CardContent,
105};

What it pulls in

Other registry items

  • card

Files it writes

  • components/ui/pixelact-ui/card.tsx
  • components/ui/pixelact-ui/styles/styles.css

Facts

Registry
Pixelact UI
Type
registry:component
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on Pixelact UI pixelactui.com pixelact-ui/pixelact-ui on GitHub Raw registry item This item as JSON

More from Pixelact UI

All 28 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Pixelact AccordionaccordionPixelact UIComponentsFreeno deps · 2 files
Pixelact AlertalertPixelact UIComponentsFreeno deps · 2 files
Pixelact Alert Dialogalert-dialogPixelact UIComponentsFreeno deps · 2 files
Pixelact AvataravatarPixelact UIComponentsFreeno deps · 2 files
Pixelact BadgebadgePixelact UIComponentsFreeno deps · 2 files
Pixelact BreadcrumbbreadcrumbPixelact UIComponentsFreeno deps · 2 files
Pixelact ButtonbuttonPixelact UIComponentsFreeno deps · 3 files
Pixelact CalendarcalendarPixelact UIComponentsFreeno deps · 2 files
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