Command Item
InputSingle-row primitive for command menus — leading icon, label, hotkey badge.
Command ItemInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import CommandListItem from @otfdashkit/ui.
Code
// Command Item — Single-row primitive for command menus — leading icon, label, hotkey badge.
//
// Install:
// bun add @otfdashkit/ui
import { CommandListItem } from '@otfdashkit/ui'
export function Example() {
return (
<CommandListItem>
{/* your content */}
</CommandListItem>
)
}Props
Props declared in the CommandListItem source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| labelrequired | string | ||
| active | boolean | ||
| className | string | ||
| description | string | ||
| icon | ReactNode | ||
| onClick | () => void | ||
| shortcut | string |