Components

ARK components are the building blocks of Kela's interfaces: 60 families for actions, forms, navigation, overlays, layout and text. They are built on Base UI and styled with the ARK tokens. This site documents version 4.1.0.

Accordion

Organizes related information into expandable sections. Use it to keep dense pages scannable while letting people reveal details as needed.

Alert

Calls attention to important contextual information. Pick the variant that matches the tone of the message: destructive for errors, warning for risks, success for confirmations, info for neutral notices.

AlertDialog

Interrupts the current task to confirm a consequential action. Use it when proceeding could cause data loss or another result that is difficult to reverse.

AspectRatio

Maintains a fixed width-to-height ratio as its container resizes. Use it for media previews, thumbnails, and other responsive content.

Avatar

Represents a person or account with an image and a reliable fallback. Use it in profiles, comments, and participant lists.

Badge

Displays a compact status, category, or count. Use it for short metadata that should be easy to scan beside other content.

Breadcrumb

Shows the current page's position within a hierarchy. Use it to help people understand context and move back through parent pages.

Button

Triggers an action or event, such as submitting a form or opening a dialog. Use the variant that matches the action's emphasis within the surrounding UI.

ButtonGroup

Visually connects related actions into one compact control. Use it when actions share the same context or form a small toolbar.

Calendar

Presents dates in a navigable month view for selecting or reviewing a date. Use it inside forms, popovers, or scheduling flows.

Card

Groups related content and actions in a contained surface. Use it for summaries, settings, and focused pieces of information.

Carousel

Lets people move through a sequence of related panels within a limited space. Use it for small collections where viewing one item at a time is useful.

Checkbox

Lets people independently select or clear an option. Use it for binary choices and groups where more than one choice may apply.

Collapsible

Reveals or hides a single region of supporting content. Use it for optional details that should not dominate the initial view.

Combobox

Combines a text input with a filterable option list. Use it when users need to search or choose from a longer set of values.

Command

Presents a searchable list of commands or destinations. Use it for quick navigation, action palettes, and compact pickers.

ContextMenu

Shows actions relevant to a target when it is right-clicked. Use it for contextual editing commands that also remain available elsewhere.

DataTable

Wires TanStack Table's row model to the Table parts, adding sorting and optional pagination. Use it for tabular data that needs behaviour rather than markup.

DatePicker

Pairs a Calendar inside a Popover with a button that reads back the chosen date. Use it wherever a date needs picking rather than typing.

Dialog

Focuses attention on a task or decision in a modal surface. Use it when the user must review or complete something before returning to the page.

Direction

Tells the components inside it whether text reads left to right or right to left, so menus, popups, sliders and keyboard arrows follow it. Wrap the app once, with the same direction as the dir attribute on <html>.

Drawer

Slides supplementary content in from an edge of the viewport. Use it for focused mobile tasks or secondary panels that should preserve page context.

DropdownMenu

Displays a compact menu anchored to a trigger. Use it to group related actions without occupying persistent page space.

Empty

Explains why a collection has no content and offers a useful next step. Use it for first-use, filtered, or cleared states.

Field

Composes labels, controls, descriptions, and validation messages into an accessible form row. Use it to keep form structure and feedback consistent.

Grid

Lays its children out in rows and columns at once, with spacing from the scale. Use it when items align in two directions, such as a form of labels and fields or a grid of cards.

HoverCard

Reveals a lightweight preview when a user hovers or focuses a link. Use it to add context without interrupting navigation.

Input

Collects a single line of text or another native input value. Use it with a visible label and clear validation guidance.

InputGroup

Combines an input with icons, text, or actions in one visual control. Use it when an adornment clarifies the value or provides a closely related action.

InputOTP

Collects a short one-time passcode in individually displayed slots. Use it for verification codes and other fixed-length numeric credentials.

Item

Structures a compact row of media, text, and actions. Use it for resource lists, settings summaries, and selectable results.

Kbd

Displays a keyboard key or shortcut. Use it in instructions and menus to communicate available keyboard actions.

Label

Provides an accessible text label for a form control. Use htmlFor to associate it with the control's id.

Menubar

Presents persistent application commands in grouped dropdown menus. Use it for desktop-style actions that should remain easy to scan.

NativeSelect

Styles the browser's native select control while preserving platform behavior. Use it for straightforward choice lists where native interaction is preferred.

NavigationMenu

Organizes primary site destinations into links and rich flyout panels. Use it for top-level navigation with grouped supporting destinations.

Pagination

Provides navigation between pages of related content. Use it when a long result set is split into stable, addressable pages.

Panel

A docked, full-height surface with a fixed header, a scrolling body and a fixed footer. It is the frame that detail and inspector panels are composed on. It owns structure and surface; the caller composes each slot.

Popover

Displays contextual content in a floating panel anchored to a trigger. Use it for lightweight details or actions that do not require a modal.

Progress

Visualizes completion of a task or process. Use it when progress can be expressed as a measurable value.

RadioGroup

Lets users choose one option from a mutually exclusive set. Use it when all available choices should remain visible.

Resizable

Creates adjacent panels whose sizes users can adjust by dragging a separator. Use it for workspaces where users benefit from controlling pane proportions.

ScrollArea

Provides a styled scrollable viewport while preserving native scrolling behavior. Use it to contain long content within a defined region.

Select

Lets users choose one value from a popup list. Use it when space is limited or the available options do not need to remain visible.

Separator

Creates a visual or semantic divider between related sections. Use it to clarify structure without introducing another container.

Sheet

Displays complementary content in a panel that slides in from an edge of the screen. Use it for focused tasks that should not replace the current page.

Sidebar

Provides app-level navigation in a collapsible side panel. Use it to group destinations, actions, and account entries that persist across pages.

Skeleton

Provides a placeholder that mirrors content while data is loading. Shape it to match the layout users can expect.

Slider

Lets users choose a numeric value or range by moving a thumb along a track. Use it when an approximate value is easier to select visually.

Sonner

Displays brief feedback after an action without interrupting the current task. Use it for confirmations, warnings, and recoverable errors.

Spinner

Indicates that an action or section is waiting for work to complete. Use it for short, indeterminate loading states.

Stack

Lays its children out in a row or a column with spacing from the scale. Use it for every one-dimensional layout in app code, instead of a styled div.

Switch

Toggles a setting between on and off. Use it when the change takes effect immediately rather than waiting for form submission.

Table

Organizes related records into rows and columns for quick comparison. Cells compose freely with other components — checkboxes, avatars, badges, switches, and progress bars.

Tabs

Switches between related sections of content within the same context. Use it when users need quick access to a small set of peer views.

Text

Styles a run of text with a type-scale style and a semantic colour. Use it for any text app code styles, instead of a span with classes. Pass render to make it a heading or a paragraph.

Textarea

Collects longer free-form text across multiple lines. Use it for notes, descriptions, feedback, and other responses that may need room to grow.

Toggle

Switches a single option between pressed and unpressed states. Use it for independent formatting or display preferences.

ToggleGroup

Groups related toggles so users can select one or more options together. Use it for compact toolbars and view preferences.

Tooltip

Reveals a short explanation when a user hovers over or focuses an element. Use it to clarify unfamiliar icons or concise controls.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.