Skip to content

Checkbox

An 18px filled box that turns bone and draws its check; unchecking stays quiet.

Download
Customize

A parent box shows a dash when its children are mixed and toggles them all.

Install

npx shadcn@latest add https://obsydeui.com/r/checkbox.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Checkbox } from '@/components/obsyde/ember/checkbox/Checkbox';

export function Example() {
  return (
    <Checkbox defaultChecked="Second" />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/checkbox/Checkbox.tsxcomponent
  • ember/checkbox/checkbox.cssstyles
  • ember/checkbox/CheckboxDemo.tsxdemo
  • ember/actions-kit/kit.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
checkedCheckedstring'Second'
disabledDisabledbooleanfalse