Loading component…
In applications
- Planned on top of it
- WorkspaceSwitcherplanned
- MentionInputplanned
Planned means not built: none of these ships today.
Loading component…
Planned means not built: none of these ships today.
What automated tests prove about each implementation — separate from whether the package itself is a finished product. Derived from the test files; how the levels are earned.
React
React setupPackage maturity: stable · Implementation verification: Beta
Angular
Angular setup · previewPackage maturity: preview · Implementation verification: Preview
SwiftUI
SwiftUI setupPackage maturity: stable · Implementation verification: Experimental
Jetpack Compose
Jetpack Compose setupPackage maturity: stable · Implementation verification: Experimental
Flutter
Flutter setupPackage maturity: stable · Implementation verification: Experimental
This platform’s whole catalogue is verified to React beta, Angular preview, SwiftUI experimental, Jetpack Compose experimental, Flutter experimental. The catalogue figure is the weakest component on that platform, not an average.
npx @kinetixui/cli add commandnpm i @kinetixui/ui @kinetixui/tokens@kinetixui/ui on npm@kinetixui/tokens on npmThe CLI copies React source. Usage imports from @kinetixui/ui require the npm package; for copied source, use your configured local import instead.
npm i @kinetixui/angular @kinetixui/tokens@kinetixui/angular on npm@kinetixui/tokens on npmSource only, not on Swift Package Manager yet: use a repository checkout pinned to a commit.
Source only, not on Maven Central yet: use a repository checkout pinned to a commit.
Source only, not on pub.dev yet: use a repository checkout pinned to a commit.
Command is a searchable list of actions or items, built on cmdk, with groups, keyboard shortcuts and an empty state, usable inline or inside a dialog.
Reduced motion: off · your browser setting
npx @kinetixui/cli add commandimport { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandDialog } from "@kinetixui/ui";Styled entirely from the KinetixUI token contract — bg-action,
text-muted-foreground, border-input, ring-ring. Works in light and dark
with no extra config. Keyboard and ARIA behaviour is inherited from Radix where the
component is built on a primitive; the hand-built widgets (DataGrid, TreeView,
ColorPicker, MultiSelect, Tour, KanbanBoard) have their own documented interaction
models — see Accessibility.
CommandDialog puts a Command in a modal Dialog. Give it a title (read when it opens; visually hidden,
since the search field is the visible heading) and pass its opener as trigger: Radix returns focus to the
dialog's own trigger on close, so a palette that is also opened by a keyboard shortcut still hands focus back
to the button. The palette sits near the top of the viewport, so filtering never moves the field being typed into.
const [open, setOpen] = React.useState(false);
// open it from a shortcut as well: setOpen((o) => !o) on ⌘K
<CommandDialog
open={open}
onOpenChange={setOpen}
title="Search the docs"
trigger={<Button variant="Outline">Search…</Button>}
>
<CommandInput placeholder="Type a command or search…" />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Pages">
<CommandItem onSelect={() => go("/docs")}>Docs</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>The props of @kinetixui/ui, generated from its TypeScript. Props inherited from the underlying DOM element (className, id, event handlers) are accepted too and are not listed.
This table is React-specific. The SwiftUI, Jetpack Compose, Flutter and Angular implementations share the design contract — the same variants, sizes, states and tokens — but each exposes its own idiomatic interface. Their real usage is in the platform tabs on the example above, not here.
| Prop | Type | Notes |
|---|---|---|
| title | stringThe dialog's accessible name, read when it opens. Visually hidden: the search field is the visible heading of a command palette. Without one the dialog is announced as a bare "dialog". | The dialog's accessible name, read when it opens. Visually hidden: the search field is the visible heading of a command palette. Without one the dialog is announced as a bare "dialog". |
| description | stringOptional visually hidden description; without one the dialog has no `aria-describedby`. | Optional visually hidden description; without one the dialog has no `aria-describedby`. |
| trigger | React.ReactElement<unknown, string | React.JSXElementConstructor<any>>The control that opens it, rendered as the dialog's trigger (one element; it becomes the button). Pass it here rather than beside the dialog: Radix returns focus to the trigger on close, and a palett… | The control that opens it, rendered as the dialog's trigger (one element; it becomes the button). Pass it here rather than beside the dialog: Radix returns focus to the trigger on close, and a palett… |
| commandProps | CommandPropsProps for the inner `Command` (filtering, `label`, `loop`, …). | Props for the inner `Command` (filtering, `label`, `loop`, …). |