Settings

Press Ctrl+K to preview the palette.
Sidebar
Display
Profile Panel

John Doe

Administrator
Commands
🚀
Go to Page
Navigate to a page
gg
🌓
Toggle Theme
Switch between light and dark mode
gt
📐
Toggle Sidebar
Show or hide the sidebar
gb
⚙️
Open Settings
Open the settings panel
gs
Search In
📄
Pages
Search pages
:p
🧩
Components
Search component pages
:c

Custom Tri-State Checkbox

Fully styled custom checkboxes with 3 states: unchecked, checked, and indeterminate

Three States

Size Variants

X Mark Modifier

Custom Glyphs via --base-icon-*

The checkmark and indeterminate dash are SVG masks reading --base-icon-check / --base-icon-indeterminate — the same tokens the web components use. Override those CSS variables (inline, on a wrapper, or in a theme) to swap the glyph without touching the component.

Per-checkbox override

Group override (wrapper sets both vars)

Both children inherit the wrapper's --base-icon-* — exactly how a theme would re-skin every checkbox at once.

Select All Pattern

Interactive demo showing isIndeterminate state for partial selection

checkbox.indeterminate = true is set via JavaScript. The CSS :indeterminate pseudo-class handles the styling.

Disabled Checkboxes

Disabled state with reduced opacity


Checkbox Lists

Basic Checkbox Lists

Simple vertical checkbox lists with hover effects - full item area is clickable

Default List

With Descriptions

Item States

Clickable, disabled, and locked states with different visual feedback

State Comparison

List Variants

Different styles for checkbox lists

Compact

Bordered

Striped

Checkbox Lists with Actions

Lists with action buttons for each item

Task List

Alternative Layouts

Inline, grid, and multi-column layouts

Inline Layout

Grid Layout

Two-Column Layout

Three-Column Layout

Tables with Checkboxes

Checkboxes in isTable first column for isRow selection

NameEmailStatusActions
John Doejohn@example.com Active
Jane Smithjane@example.com Active
Bob Johnsonbob@example.com Pending
Alice Williamsalice@example.com Active
Charlie Browncharlie@example.com Inactive

Interactive Demo

Select-all functionality and row selection

ProductSKUPriceStock
Laptop Pro 15"LPT-001$1,299 In Stock
Wireless MouseMSE-042$29 In Stock
USB-C HubHUB-123$49 Low Stock
Monitor 27"MON-789$399 Out of Stock
Keyboard MechanicalKBD-555$89 In Stock

CSS Classes Reference

Custom Checkbox Component

  • pa-checkbox - Base custom checkbox (wraps input + box + label)
  • pa-checkbox__box - Visual checkbox element
  • pa-checkbox__label - Label text
  • pa-checkbox--xs - Extra small size
  • pa-checkbox--sm - Small size
  • pa-checkbox--lg - Large size
  • pa-checkbox--xl - Extra large size
  • pa-checkbox--x - X mark instead of checkmark
  • pa-checkbox--disabled - Disabled appearance

Checkbox List Container

  • pa-checkbox-list - Base list container (vertical)
  • pa-checkbox-list--compact - Reduced padding
  • pa-checkbox-list--bordered - Border around list
  • pa-checkbox-list--striped - Zebra striping
  • pa-checkbox-list--inline - Horizontal wrapping layout
  • pa-checkbox-list--grid - Auto-fill grid layout
  • pa-checkbox-list--2col - Two-column grid
  • pa-checkbox-list--3col - Three-column grid

Checkbox List Items

  • pa-checkbox-list__item - List item
  • pa-checkbox-list__item--selected - Selected state
  • pa-checkbox-list__item--disabled - Disabled (feature unavailable)
  • pa-checkbox-list__item--locked - Locked (requires permission)
  • pa-checkbox-list__label - Clickable label wrapper
  • pa-checkbox-list__text - Text content
  • pa-checkbox-list__description - Secondary description
  • pa-checkbox-list__actions - Action buttons container

Table Checkboxes

  • pa-table__checkbox-col - Checkbox column (minimal width)
  • pa-table__row--selected - Selected row highlight

Checkbox States (via input)

  • :checked - Checked state (checkmark)
  • :indeterminate - Indeterminate state (dash) - set via JS
  • :disabled - Disabled state

Keyboard Shortcuts

No shortcuts registered.