Components
npx cubix-ui@latest add followed by its name.A component is public only when it meets the readiness contract: Base UI, React Aria, and Radix UI sources, a docs page, and a registry entry. Switch bases on the component page, or pass --base when you install.
pnpm dlx cubix-ui@latest add buttonAvailable
Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Alert
Displays a callout for user attention.
Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
Amount Field
A labeled amount field with currency unit, description, and error. Values always display as Persian digits with thousand separators.
Aspect Ratio
Displays content within a desired ratio.
Attachment
Displays a file or image attachment with media, metadata, upload state, and actions.
Avatar
An image element with a fallback for representing the user.
Badge
Displays a badge or a component that looks like a badge.
Birthday Date
A labeled birthday field with separate day, month, and year inputs. Values always display as Persian digits.
Branch
Navigate alternate reply branches when regenerating or editing a turn.
Breadcrumb
Displays the path to the current resource using a hierarchy of links.
Button
Displays a button or a component that looks like a button, with variants, sizes and loading state.
Button Group
A container that groups related buttons together with consistent styling.
Calendar
A calendar component that allows users to select a date or a range of dates.
Card
A flexible container with header, content, and footer.
Carousel
A carousel with motion and swipe built on Embla.
Checkbox
A control that toggles between checked, unchecked, and indeterminate. Compose with Label via id and htmlFor.
Chips
A row of selectable pills for filtering, tagging, or picking one or more options.
Collapsible
An interactive component which expands and collapses a panel.
Combobox
Autocomplete input and command palette with a list of suggestions.
Context Menu
Displays a menu of actions at the pointer, opened with a right click or long press.
Credit Card
A labeled credit card number field with four separate 4-digit inputs. Values always display as Persian digits.
Dialog
A modal window overlaid on the primary content for focused tasks, forms, and secondary flows.
Direction
A provider component that sets the text direction for your application.
Drawer
A panel that slides in from an edge of the screen - typically the bottom - with dim overlay chrome.
Dropdown Menu
Displays a menu of actions or links to the user, triggered by a button.
Email Field
A labeled email field with icons, clear, description, and error. type is locked to email.
Empty
Use the Empty component to display an empty state.
Hover Card
For sighted users to preview content available behind a link.
Input
Displays a form input field or a component that looks like an input field, with invalid and disabled states.
Input Group
Display additional information or actions inside an input.
Kbd
A component to display keyboard shortcuts.
Label
Renders an accessible label associated with controls.
Menubar
A visually persistent menu common in desktop applications.
Number Field
A labeled number field with icons, stepper arrows, description, and error. Values always display as Persian digits.
Password Field
A labeled password field with icons, visibility toggle, description, and error. type switches between password and text when revealed.
Phone Field
A labeled mobile phone field with icons, clear, description, and error. type is locked to tel.
Popover
Displays rich content in a portal, triggered by a button.
Progress
Displays an indicator showing the completion progress of a task.
Radio Group
A set of checkable buttons where only one can be checked at a time. Compose each option with Label via id and htmlFor.
Select
Displays a list of options for the user to pick from, triggered by a button.
Separator
Visually or semantically separates content.
Sheet
Extends the Dialog to display content that complements the main content of the screen.
Skeleton
Use to show a placeholder while content is loading.
Slider
An input where the user selects a value from within a given range.
Spinner
An indicator that can be used to show a loading state.
Switch
A control that allows the user to toggle between checked and not checked.
Tabs
A set of layered sections of content, known as tab panels, displayed one at a time.
Text Area
A multiline text control for longer content - messages, notes, and bios.
Text Field
A labeled plain-text field with icons, clear, description, and error. Email, phone, number, price, and password are separate components.
Toast
A succinct message that appears temporarily to provide feedback.
Toggle
A two-state button that can be either on or off.
Toggle Group
A set of two-state buttons that can be toggled on or off.
Tooltip
A popup that displays information related to an element when it receives keyboard focus or hover.
Verify Code
A labeled one-time verify code field with separate digit boxes. Set length for box count and groups to insert - separators between digit groups.
On the roadmap
Roadmap components are not installable and have no public docs until they meet the readiness contract across all three bases - including loading, empty, and error states. They unlock in the sidebar when ready. Track progress on the Changelog.
Action Sheet
In progressMobile action menu that slides up with destructive and cancel options.
App Bar
In progressCompact top bar for mobile screens with title, navigation, and action slots.
Bottom Navigation
In progressA persistent tab bar for primary mobile destinations with icons, labels, badges, and safe-area support.
Bottom Sheet
In progressDraggable sheet anchored to the bottom of the viewport for filters, details, and pickers.
Chart
In progressBeautiful charts built using Recharts.
Code Block
In progressSyntax-highlighted code surface for assistant replies with copy actions.
Command
In progressCommand menu for search and quick actions.
Conversation
In progressTop-level chat shell that sticks to the latest turn, with empty, scroll, streaming, and download controls.
Data Table
In progressPowerful table and datagrids built using TanStack Table.
Date Picker
In progressA date picker component with range and presets.
Dock
In progressFloating mobile dock for quick actions that sit above the home indicator.
FAB
In progressFloating action button for the primary mobile action, with optional speed-dial expands.
Field
In progressCombine labels, controls, and help text to compose accessible form fields and grouped inputs.
Message
In progressDisplays a message in a conversation, with optional avatar, header, footer, and alignment.
Message Scroller
In progressChat transcript scroller for turn anchoring, streaming follow, history restore, and jump controls.
Model Selector
In progressSelect models and providers from the chat header or composer toolbar.
Navigation Menu
In progressA collection of links for navigating websites.
Pagination
In progressPagination with page navigation, next and previous links.
Prompt Input
In progressAI prompt composer with actions, file attachments, and submit controls.
Prompt Suggestion
In progressOne-tap suggestion chips that seed the prompt composer with starter prompts.
Pull to Refresh
In progressPull-down refresh control for mobile lists and feeds with loading feedback.
Queue
In progressQueue and manage pending prompts while the model is still responding.
Resizable
In progressAccessible resizable panel groups and layouts.
Safe Area
In progressLayout helpers that respect notch, home indicator, and device safe insets.
Scroll Area
In progressAugments native scroll functionality for custom, cross-browser styling.
Segmented Control
In progressCompact iOS-style control for switching between a small set of views.
Sidebar
In progressA composable, themeable and customizable sidebar component.
Snackbar
In progressTransient bottom feedback for mobile actions, with optional undo.
Sonner
In progressAn opinionated toast component.
Sources
In progressCitation list for retrieved documents and grounded answer references.
Stepper
In progressNumeric stepper with increment and decrement controls sized for touch.
Streaming Text
In progressProgressive text surface for token-by-token model output during a stream.
Swipe Actions
In progressSwipeable list rows that reveal contextual actions on touch gestures.
Table
In progressA responsive table component.
Thinking
In progressCollapsible block for model reasoning and chain-of-thought while a reply is prepared.
Tool Call
In progressVisualize tool and function invocations with status, args, and results.