Custom Component Preview & Test Workbench

Karan UI Component System

Explore, test, and interact with all 56 components and primitives with modern styling and tokens. Features full prop controls, portable story execution, and automated assertion tests.

56 Components100% Tested

Actions & Inputs

17
Button

Displays an interactive button with proportional size-to-radius geometry, smart variant/intent color resolution, leading/trailing slots, full-width alignment, and async loading state.

10 propsBase UI
Input

Proportional single-line text and file field supporting default, outline, and ghost variants, 4 size tiers aligned with Button, bi-directional password toggling, and customizable file input labels.

10 propsBase UI
Textarea

Auto-expanding multiline text field with default, outline, and ghost variants, 4 size tiers, maxHeight auto-scroll, zero scroll-dimension padding, and dynamic fader effects on scrollable edges.

5 propsBase UI
Switch

A control that allows the user to toggle between checked and not checked states.

3 propsBase UI
Slider

Accessible range and single-value slider with synchronized thumb and indicator line movement and optional real-time thumb tooltip.

5 propsBase UI
Checkbox

Accessible tri-state checkbox with 250ms legible stroke-draw checkmark animation, indeterminate state, and CheckboxGroup parent-child synchronization.

4 propsBase UI
Checkbox Group

Coordinates shared state across multiple checkboxes with automatic parent indeterminate state when some child checkboxes are off.

2 propsBase UI
Radio Group

A set of checkable buttons—known as radio buttons—where only one can be checked at a time. Supports both standard animated circular radios and arbitrary custom content items.

3 propsBase UI
Select

Accessible select menu built on @base-ui/react/select with default, outline, and ghost variants, 4 proportional size tiers matching Button and Input, alignWithItem positioning, dual up/down chevron trigger icon, and OKLCH color-mix translucent popup overlay.

4 propsBase UI
Field

Form control wrapper orchestrating label, optional subtitle description, interactive input, and bottom caption with multi-intent feedback and optical vertical symmetry.

1 propsBase UI
Button Group

Groups related buttons into a contiguous segmented bar or a spaced toolbar with shared variant, intent, size, and bi-directional (LTR/RTL) corner geometry.

6 propsBase UI
Toggle

A two-state button that can be either on or off, supporting default, outline, and tint variants, size-to-radius scaling identical to Button, and square icon-* dimensions.

4 propsBase UI
Toggle Group

A set of two-state buttons coordinating selection state, attached or spaced layout, variant and size inheritance, and horizontal/vertical orientation.

6 propsBase UI
Input Group

Compound input container attaching icons, text addons, buttons, or dropdowns to inputs and textareas with synchronized focus rings, matching Input variants, sizes, and unified surface contrast.

4 propsBase UI
Input OTP

Accessible, segmented one-time password and verification code input supporting default, outline, and ghost variants, 5 density tiers aligned with Button and Input, dynamic radius presets, and seamless copy-paste.

4 propsBase UI
Command

Fast, composable, unstyled command menu and spotlight search palette built with cmdk and Base UI Dialog.

1 propsBase UI
Combobox

Autocomplete input and picker combo built with Base UI Combobox primitives, seamlessly integrated with InputGroup surface architecture, context cascading, and multi-select chips.

8 propsBase UI

Data Display & Layout

16
Badge

Displays a badge or small status tag styled with custom design tokens.

2 propsBase UI
Card

Displays a versatile surface card supporting default (tint), outline, and ghost variants, 6 semantic OKLCH intents, proportional sm/default/lg geometry (P = R + 2px), and polymorphic interactive states.

6 propsBase UI
Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

0 propsBase UI
Collapsible

An interactive component which expands/collapses a panel.

0 propsBase UI
Collapsible Section

A collapsible section featuring a full-width trigger row (with children as the label and a dedicated rotating chevron at the end of the row) and a content div below it.

2 propsBase UI
Table

A responsive table component with default, outline, and surface variants, plus an exported DataTable powered by TanStack Table.

1 propsBase UI
Data Table

A powerful, feature-rich data table powered by TanStack Table supporting column sorting, multi-row selection, density variants, and accessible pagination.

3 propsBase UI
Avatar

An image element with a fallback for representing the user, with group and badge support.

1 propsBase UI
Item

A flexible list item component for menus, cards, and activity feeds.

0 propsBase UI
Empty

Displays a friendly empty state when no content or results exist.

0 propsBase UI
Scroll Area

Augments native scroll with custom cross-browser styling and custom scrollbars.

0 propsBase UI
Aspect Ratio

Displays content within a desired aspect ratio (e.g. 16/9, 4/3, 1/1).

1 propsBase UI
Resizable

Accessible resizable panel groups and handles with tactile drag state.

1 propsBase UI
Calendar

A date field component that allows users to enter and edit date values using react-day-picker.

0 propsBase UI
Carousel

A carousel with motion and swipe gestures built with Embla Carousel.

0 propsBase UI
Chart

Beautiful, responsive charts built using Recharts and OKLCH color tokens.

3 propsBase UI