GWAN.DEV


Foundations

Icons

Actions

Buttons

Form Controls

Input

Text Area

Select Dropdown

Filter Dropdown

Checkbox

Radio Button

Switch

File Uploader

Color Picker

Multi Select

Search Input

Slider

OTP Input

Date Picker

Time Picker

Date Range Picker

Data Display

Table

Pagination

Progress Bar

Stat Card

Circular Progress

Navigation

Side Menu

Menu Bar

Tabs

Breadcrumb

Ellipsis

Content & Layout

Card

Divider

Banner

Carousel

Accordion

Timeline

Stepper

List

Overlays

Modal

Drawer

Popover

Command Palette

Dropdown Menu

Context Menu

Indicators

Tags

Chips

Badge

Avatar

Avatar Group

Tooltip

Skeleton

Spinner

Feedback

Snackbar

Alert

Callout

State

Checkbox

Playground
Actions
  1. Interact with the preview to see callbacks fire.
Content
string

Text next to the box. Clicking it toggles the box too.

Default—
boolean

Whether the box is ticked. Controlled: update it from onChange.

Default—
Appearance
CHECKBOX_SIZE

Box and label size.

DefaultCHECKBOX_SIZE.MEDIUM
CHECKBOX_EDGE_STYLE

Corner style of the box.

DefaultCHECKBOX_EDGE_STYLE.ROUNDED
Behaviour
boolean

Blocks toggling and dims the checkbox.

Defaultfalse
Events
(checked: boolean) => void

Called with the new checked state.

Default—
Logged in Actions
Advanced
string

Extra classes on the wrapper.

Default""
Usage
import { useState } from "react";
import { Checkbox } from "gwan-design-system";

const Example = () => {
  const [checked, setChecked] = useState(false);

  return (
    <Checkbox
      label="Remember me"
      checked={checked}
      onChange={setChecked}
    />
  );
};