Combobox
A searchable list of choices: a Popover holding a Command. Type to filter, Enter to pick.
Installation
pnpm add @heyramzi/ui bits-uiUsage
import * as Command from "@heyramzi/ui/shadcn/command";API reference
Popover
portalPropsWithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>refbindableHTMLElement | null- Default
null classstringsideOffsetnumber- Default
4 alignstring- Default
"center" collisionPaddingnumber- Default
8 ...rest- Every prop of
Popover.Contentfrombits-ui
| Prop | Type | Default |
|---|---|---|
portalProps | WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>> | |
ref bindable | HTMLElement | null | null |
class | string | |
sideOffset | number | 4 |
align | string | "center" |
collisionPadding | number | 8 |
...rest | Every prop of Popover.Content from bits-ui | |
Command
apibindableCommandRootApi | null- Default
null refbindableHTMLElement | null- Default
null valuebindablestring- Default
"" classstring...rest- Every prop of
Command.Rootfrombits-ui
| Prop | Type | Default |
|---|---|---|
api bindable | CommandRootApi | null | null |
ref bindable | HTMLElement | null | null |
value bindable | string | "" |
class | string | |
...rest | Every prop of Command.Root from bits-ui | |