BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/scificn/checkbox

Checkbox

scificn/checkbox
FreeComponent

Accessible checkbox with terminal-style filled square indicator.

Live preview

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

Install it

npx shadcn@latest add https://www.scificn.dev/r/checkbox.json

Source

ui/checkbox/checkbox.tsxwww.scificn.dev/r/checkbox.json
1import * as React from 'react'
2import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
3import { cn } from '@/lib/utils'
4
5export interface CheckboxProps
6 extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
7 label?: string
8}
9
10const Checkbox = React.forwardRef<
11 React.ElementRef<typeof CheckboxPrimitive.Root>,
12 CheckboxProps
13>(({ className, label, id, ...props }, ref) => {
14 const checkboxId = id ?? label?.toLowerCase().replace(/\s+/g, '-')
15
16 return (
17 <div style={{ display: 'inline-flex', alignItems: 'center', gap: '0.5rem' }}>
18 <CheckboxPrimitive.Root
19 ref={ref}
20 id={checkboxId}
21 className={cn(
22 'peer h-4 w-4 shrink-0 rounded-none',
23 'border border-[var(--border)]',
24 'bg-[var(--surface)]',
25 'focus-visible:outline-none',
26 'focus-visible:border-[var(--border-active)]',
27 'focus-visible:shadow-[var(--glow-green)]',
28 'disabled:cursor-not-allowed disabled:opacity-40',
29 'data-[state=checked]:border-[var(--color-green)]',
30 'data-[state=checked]:bg-[var(--surface-raised)]',
31 'data-[state=checked]:shadow-[var(--glow-green)]',
32 'transition-all duration-150',
33 className
34 )}
35 {...props}
36 >
37 <CheckboxPrimitive.Indicator
38 style={{
39 display: 'flex',
40 alignItems: 'center',
41 justifyContent: 'center',
42 width: '100%',
43 height: '100%',
44 }}
45 >
46 <span
47 style={{
48 color: 'var(--color-green)',
49 fontSize: '0.6rem',
50 lineHeight: 1,
51 textShadow: 'var(--text-glow-green)',
52 userSelect: 'none',
53 }}
54 >
55 ■
56 </span>
57 </CheckboxPrimitive.Indicator>
58 </CheckboxPrimitive.Root>
59
60 {label && (
61 <label
62 htmlFor={checkboxId}
63 style={{
64 fontSize: '0.75rem',
65 color: 'var(--text-secondary)',
66 letterSpacing: '0.05em',
67 cursor: 'pointer',
68 userSelect: 'none',
69 }}
70 >
71 {label}
72 </label>
73 )}
74 </div>
75 )
76})
77Checkbox.displayName = CheckboxPrimitive.Root.displayName
78
79export { Checkbox }

What it pulls in

npm packages

  • @radix-ui/react-checkbox

Facts

Registry
scificn
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on scificn www.scificn.dev baxy5/scificn-ui on GitHub Raw registry item This item as JSON

More from scificn

All 33 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertscificnComponentsFree1 dep
BadgebadgescificnComponentsFree1 dep
Bar Chartbar-chartscificnComponentsFreeno deps
BreadcrumbbreadcrumbscificnComponentsFreeno deps
ButtonbuttonscificnComponentsFree2 deps
CardcardscificnComponentsFreeno deps
DialogdialogscificnComponentsFree1 dep
GridgridscificnComponentsFreeno 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