Components

Checkbox

A control that allows the user to toggle between checked and not checked in the neo-brutalism style.

3Sizes
FORMNative
A11yLabel sync
Source ↗Open Docs

Preview

Usage

Import
import { NbCheckbox } from '@ng-brutalism/ui';
Template
<input type="checkbox" nbCheckbox />

Sizes

Disabled

With Label

Customization

Override these CSS variables on :root, a wrapper, or the component element. More local values win, so per-instance styling can sit directly on the element.

Token Default Used for
--nb-checkbox-bg var(--nb-main) Checked background
--nb-checkbox-fg #fff Checked text color
--nb-checkbox-border var(--nb-border) Checkbox outline and focus ring color
--nb-checkbox-radius 0 Checkbox corner radius
--nb-border #000000 Border color and focus ring color
--nb-shadow #000000 Offset shadow color
--nb-radius 0rem Corner radius through the rounded-nb utility
--nb-shadow-offset-x 4px Horizontal shadow and press offset
--nb-shadow-offset-y 4px Vertical shadow and press offset
--nb-foreground #000000 Default foreground text color
--nb-background #ffffff Default surface background color

API

Input Type Default
size 'default' | 'sm' | 'lg' 'default'