Display UI

Checkbox

Allows users to select one or multiple options from a list. Commonly used in forms, filters, and settings panels.

Loading...

Installation

npx shadcn@latest add https://display-ui.vercel.app/r/CheckBox

Usage

import { CheckBox } from "@/components/display-ui/CheckBox"
<CheckBox />

API

Checkbox Props

For CheckBox Component

AttributeTypeDescriptionDefault
variant"primary" | "dark" | "success" | "danger"Controls the accent color of the checkbox."primary"
boxSize"md" | "lg" | "xl"Controls the size of the checkbox."md"
classNamestringAdditional CSS classes to customize the checkbox styling.-

Examples

Default

Dark

Success

Danger

Credits

This component is inspired by Rehman Kalawant Design Shared On Github.

On this page