BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@nivalis/ui/checkbox

Checkbox

nivalis-ui/checkbox
FreeComponent

A checkbox component.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nivalis-studio/nivalis-ui/main/public/r/checkbox.json

Source

registry/niv/ui/checkbox.tsxraw.githubusercontent.com/nivalis-studio/nivalis-ui/main/public/r/checkbox.json
1'use client';
2
3import { Indicator, Root } from '@radix-ui/react-checkbox';
4import { CheckIcon } from 'lucide-react';
5import { cn } from '@/lib/classnames';
6import type * as React from 'react';
7
8const Checkbox = ({
9 className,
10 ...props
11}: React.ComponentProps<typeof Root>) => {
12 return (
13 <Root
14 className={cn(
15 'peer size-4 shrink-0 rounded-lg 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-50 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:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40',
16 className,
17 )}
18 data-slot='checkbox'
19 {...props}
20 >
21 <Indicator
22 className='grid place-content-center text-current transition-none'
23 data-slot='checkbox-indicator'
24 >
25 <CheckIcon className='size-3.5' />
26 </Indicator>
27 </Root>
28 );
29};
30
31export { Checkbox };

What it pulls in

npm packages

  • @radix-ui/react-checkbox

Files it writes

  • registry/niv/ui/checkbox.tsx

Facts

Registry
@nivalis/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

ui.nivalis.studio nivalis-studio/nivalis-ui on GitHub Raw registry item This item as JSON

More from @nivalis/ui

All 23 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordion@nivalis/uiComponentsFree1 dep
Avataravatar@nivalis/uiComponentsFree1 dep
Badgebadge@nivalis/uiComponentsFreeno deps
Breadcrumbbreadcrumb@nivalis/uiComponentsFree1 dep
Buttonbutton@nivalis/uiComponentsFree1 dep
Cardcard@nivalis/uiComponentsFreeno deps
Commandcommand@nivalis/uiComponentsFree2 deps · 2 files
ContextMenucontext-menu@nivalis/uiComponentsFree1 dep
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