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/checkbox

Pixelact Checkbox

pixelact-ui/checkbox
FreeComponent

A simple checkbox 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/checkbox.json

Source

components/ui/pixelact-ui/checkbox.tsxpixelactui.com/r/checkbox.json
1import * as React from "react";
2
3import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
5import { cn } from "@/lib/utils";
6
7import "@/components/ui/pixelact-ui/styles/styles.css";
8
9export interface CheckboxProps
10 extends React.ComponentProps<typeof CheckboxPrimitive.Root> {
11 asChild?: boolean;
12}
13
14function Checkbox({ className, ...props }: CheckboxProps) {
15 return (
16 // <ShadcnCheckbox
17 // className={cn(
18 // "rounded-none size-4 ring-0 border-none shadow-(--pixel-box-shadow) box-shadow-margin",
19 // className
20 // )}
21 // {...props}
22 // />
23
24 <CheckboxPrimitive.Root
25 data-slot="checkbox"
26 className={cn(
27 "rounded-none size-4 ring-0 border-none shadow-(--pixel-box-shadow) box-shadow-margin peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shrink-0 border transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
28 className
29 )}
30 {...props}
31 >
32 <CheckboxPrimitive.Indicator
33 data-slot="checkbox-indicator"
34 className="flex items-center justify-center text-current transition-none"
35 >
36 <svg
37 xmlns="http://www.w3.org/2000/svg"
38 width="32"
39 height="32"
40 viewBox="0 0 24 24"
41 className="size-3.5"
42 >
43 <path
44 className="text-foreground"
45 d="M18 6h2v2h-2zm-2 4V8h2v2zm-2 2v-2h2v2zm-2 2h2v-2h-2zm-2 2h2v-2h-2zm-2 0v2h2v-2zm-2-2h2v2H6zm0 0H4v-2h2z"
46 />
47 </svg>
48 </CheckboxPrimitive.Indicator>
49 </CheckboxPrimitive.Root>
50 );
51}
52
53export { Checkbox };

Files it writes

  • components/ui/pixelact-ui/checkbox.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