Skip to content
Hazine

Selection Controls

2 of 44 shipped. Controls for choosing one or many options, split by the APG pattern that drives them.

  • checkboxes and checklists

    A parent checkbox that controls an indented list of child checkboxes and shows a mixed state when only some are checked. Use it for permission scopes or export field selection.

    How it differs. Two levels: the parent derives checked, unchecked or mixed from its children and sets them all when toggled. Children hang off a guide line under the parent, which carries a running count.

    shadcn add @hazine/checkbox-tree-mixed-parent

    Depends on @hazine/use-controllable-state, lucide-react, class-variance-authority

Planned 4

  • Checkbox Cards with Selection Limit
  • Checklist with Progress
  • Consent Checkbox Group
  • Select All List Header

Planned 6

  • Radio Cards with Price
  • Radio List with Detail Reveal
  • Radio Comparison Columns
  • Compact Radio Pills
  • Radio Group with Inline Sub-fields
  • Radio List with Live Preview

Planned 5

  • Switch with Confirmation Guard
  • Switch Group with Master Toggle
  • Switch with Pending State
  • Plan-locked Switch Row
  • Switch with Dependent Fields

04 / Selects and comboboxes

1 of 6 shipped
  • selects and comboboxes

    Combobox that asks a remote source as the user types, with debounced requests and a popup that shows skeleton rows, results, an empty state or an error with Retry. Use when the option set is too large to ship.

    How it differs. Every remote state lives inside the popup: minimum characters hint, skeleton rows, capped result count, empty and error panels with one action each, and stale responses dropped.

    shadcn add @hazine/combobox-async-search

    Depends on button, command, popover, skeleton, @hazine/use-controllable-state, lucide-react

Planned 5

  • Drill-in Hierarchy Select
  • Combobox with Avatar and Meta
  • Combobox with Create Option
  • Cascading Country and Region Comboboxes
  • Inline Autocomplete Combobox

Planned 5

  • Checkbox Multi-select
  • Multi-select with Chips in Trigger
  • Dual List Transfer
  • Member Picker with Roles
  • Ranked Multi-select

06 / Sliders and ranges

0 of 5 shipped

Planned 5

  • Allocation Sliders with Fixed Total
  • Stepped Slider with Marks
  • Range Slider with Inputs
  • Range Slider with Histogram
  • Vertical Slider Bank

07 / Segmented controls

0 of 4 shipped

Planned 4

  • Segmented Control with Custom Value
  • Icon and Label Segmented Control
  • Segmented Control that Collapses to Select
  • Two-line Segmented Control

08 / Rating and scale inputs

0 of 5 shipped

Planned 5

  • Star Rating
  • Thumbs Feedback with Reason Chips
  • Zero to Ten Scale
  • Sentiment Scale
  • Likert Matrix

Planned 3

  • Swatch Radio Grid
  • Hex Colour Input with Preview
  • Design Token Colour Picker