BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/checkbox

Checkbox

octane/checkbox
FreeComponent

octane publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/checkbox.json

Source

ui/checkbox.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/checkbox.json
1// Base UI base checkbox — runs on the @octanejs/base-ui `Checkbox` primitive.
2//
3// THE CONDITIONAL UTILITIES ARE ADAPTED, NOT COPIED, and the reason is structural rather than
4// stylistic. Base UI's Checkbox.Root renders a `<span role="checkbox">` — verified by rendering
5// it, not assumed — with a visually-hidden native `<input>` alongside it for form submission.
6// A `<span>` is never `:disabled`, so Tailwind's `disabled:` variant (which compiles to the
7// `:disabled` pseudo-class) can NEVER match. The primitive publishes `data-disabled` instead:
8//
9// radix base: `disabled:opacity-50` -> matches, Root is a real button
10// base-ui base: `data-disabled:opacity-50` <- what this file uses
11//
12// `data-checked:` needs no change — the radix base already uses that exact form, and Base UI
13// emits `data-checked`/`data-unchecked` too. `focus-visible:` also stays: the span carries
14// tabindex, so the native pseudo-class applies.
15//
16// UNVERIFIED PROVENANCE: the non-conditional utilities are taken from this package's radix base
17// rather than transcribed from upstream's Base UI source.
18import { Checkbox as CheckboxPrimitive } from '@octanejs/base-ui/checkbox';
19import { CheckIcon } from '@octanejs/lucide';
20
21import { cn } from '@/lib/utils';
22
23export interface CheckboxProps extends Record<string, unknown> {
24 className?: string;
25}
26
27export function Checkbox({ className, ...props }: CheckboxProps) @{
28 <CheckboxPrimitive.Root
29 data-slot="checkbox"
30 className={cn(
31 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary',
32 className,
33 )}
34 {...props}
35 >
36 <CheckboxPrimitive.Indicator
37 data-slot="checkbox-indicator"
38 className="grid place-content-center text-current transition-none [&>svg]:size-3.5"
39 >
40 <CheckIcon />
41 </CheckboxPrimitive.Indicator>
42 </CheckboxPrimitive.Root>
43}

What it pulls in

npm packages

  • @octanejs/base-ui@0.1.35
  • @octanejs/lucide@0.1.32

Other registry items

  • @octane/utils

Files it writes

  • ui/checkbox.tsrx

Facts

Registry
octane
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on octane octanejs.dev octanejs/octane on GitHub Raw registry item This item as JSON

More from octane

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionoctaneComponentsFree2 deps
AlertalertoctaneComponentsFree1 dep
Alert Dialogalert-dialogoctaneComponentsFree1 dep
Aspect Ratioaspect-ratiooctaneComponentsFreeno deps
AvataravataroctaneComponentsFree1 dep
BadgebadgeoctaneComponentsFree1 dep
BreadcrumbbreadcrumboctaneComponentsFree1 dep
ButtonbuttonoctaneComponentsFree2 deps

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