BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shipbase/ui/checkbox

checkbox

shipbase-ui/checkbox
FreeComponent

shipbase/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/checkbox.json

Source

./src/components/ui/checkbox.tsxraw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/checkbox.json
1"use client"
2
3import * as React from "react"
4
5import { Checkbox as CheckboxPrimitive } from "@ark-ui/react/checkbox"
6import { CheckIcon, MinusIcon } from "lucide-react"
7
8import { cn } from "@/lib/utils"
9
10const Checkbox = CheckboxPrimitive.Root
11
12const CheckboxContext = CheckboxPrimitive.Context
13
14const CheckboxControl = React.forwardRef<
15 React.ElementRef<typeof CheckboxPrimitive.Control>,
16 CheckboxPrimitive.ControlProps
17>(({ className, children, ...props }, ref) => (
18 <>
19 <CheckboxPrimitive.Control
20 ref={ref}
21 className={cn(
22 "peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-500 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:aria-invalid:ring-destructive/40",
23 className
24 )}
25 {...props}
26 >
27 <CheckboxPrimitive.Indicator
28 className="grid place-content-center text-current"
29 indeterminate
30 >
31 <MinusIcon className="size-4" />
32 </CheckboxPrimitive.Indicator>
33 <CheckboxPrimitive.Indicator className="grid place-content-center text-current">
34 <CheckIcon className="size-4" />
35 </CheckboxPrimitive.Indicator>
36 </CheckboxPrimitive.Control>
37 <CheckboxPrimitive.HiddenInput />
38 </>
39))
40CheckboxControl.displayName = "CheckboxControl"
41
42const CheckboxGroup = CheckboxPrimitive.Group
43
44const CheckboxLabel = React.forwardRef<
45 React.ElementRef<typeof CheckboxPrimitive.Label>,
46 CheckboxPrimitive.LabelProps
47>(({ className, ...props }, ref) => (
48 <CheckboxPrimitive.Label
49 ref={ref}
50 className={cn(
51 "select-none font-medium text-foreground text-sm leading-4 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
52 className
53 )}
54 {...props}
55 />
56))
57CheckboxLabel.displayName = "CheckboxLabel"
58
59export {
60 Checkbox,
61 CheckboxContext,
62 CheckboxControl,
63 CheckboxGroup,
64 CheckboxLabel,
65}

What it pulls in

npm packages

  • @ark-ui/react
  • lucide-react

Files it writes

  • ./src/components/ui/checkbox.tsx

Facts

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

Go to the source

ui.shipbase.xyz shipbase/ui on GitHub Raw registry item This item as JSON

More from shipbase/ui

All 32 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshipbase/uiComponentsFree2 deps
avataravatarshipbase/uiComponentsFree1 dep
badgebadgeshipbase/uiComponentsFree2 deps
buttonbuttonshipbase/uiComponentsFree2 deps
cardcardshipbase/uiComponentsFree1 dep
collapsiblecollapsibleshipbase/uiComponentsFree1 dep
comboboxcomboboxshipbase/uiComponentsFree2 deps
dialogdialogshipbase/uiComponentsFree2 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