Library 73 primitives

Every Clay component.

73 primitives, grouped by intent. Each page renders live demos against the active theme, switch themes from the header and the gallery follows.

01 Primitives 06 components
02 Forms 21 components
07 calendar

Calendar

An accessible date picker calendar supporting single, range, and multiple selection modes.

08 checkbox

Checkbox

Binary toggle with checked / unchecked / indeterminate states. Built on Radix Checkbox.

09 color-picker

Color Picker

Designer-grade color picker. Saturation × value pad, hue slider, alpha track with checkerboard, format tabs for hex, rgb, and hsl, one-click pills for `currentColor`, `transparent`, and `inherit`, recent-colors strip, and live WCAG contrast badges. Controlled. Emits a CSS color string: `#rrggbb`, `#rrggbbaa`, or one of the special keywords.

10 combobox

Combobox

Typeahead-search select that pairs a Popover trigger with a Command palette listbox.

11 date-picker

Date Picker

Trigger button that opens a popover-anchored calendar for picking a single date or a date range.

12 dropzone

Dropzone

A drag-and-drop file surface that also opens the native picker on click, with a dashed border that highlights while a file is dragged over it.

13 field

Field

Form-field layout primitive. Standardises the label + control + description + error stack with consistent spacing and ARIA wiring.

14 file-upload

File Upload

A button-triggered file picker paired with a list of selected files, each showing its name, size, upload progress, and a remove control.

15 input

Input

A themed single-line text input. Thin wrapper over the native input with tokenised styling, focus ring, and aria-invalid handling.

16 input-group

Input Group

Compose an Input with adornments, addon icons, trailing buttons, prefix labels.

17 input-otp

Input OTP

An accessible one-time password input with individual character slots and paste support.

18 label

Label

Accessible form label. Wraps Radix Label primitive with tokenised typography.

19 mini-calendar

Mini Calendar

A compact horizontal strip of selectable days with previous/next navigation, ideal as a space-efficient date picker for toolbars, popovers, and inline forms.

20 password-input

Password Input

Input variant for password entry with an eye toggle to reveal characters.

21 radio-group

Radio Group

A set of mutually exclusive radio buttons where only one can be selected at a time.

22 select

Select

Dropdown selection menu. Wraps Radix Select with tokenised styling.

23 slider

Slider

Single-thumb numeric range track. Optional tick dots and labels mark `step` increments, custom intervals, or preset positions. Pair with `<SliderValue>` when you need a numeric readout.

24 switch

Switch

Two-state toggle. Use for on/off settings; prefer Checkbox for multi-select forms.

25 textarea

Textarea

Multi-line text input. Auto-resizes if you let it, or clamp via `rows`.

26 toggle

Toggle

A two-state button that can be toggled on or off, useful for formatting toolbars.

27 toggle-group

Toggle Group

A group of two-state buttons that share variant and size context.

03 Overlays 09 components
04 Navigation 08 components
05 Feedback 09 components
06 Layout 11 components
07 Data 09 components