rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Combobox

Searchable select combining a text input with a filterable dropdown list.

Examples

Basic

A dropdown list with a trigger button.

With Search

Combobox with a text filter input inside the dropdown.

Disabled

A combobox that cannot be interacted with.

With Groups

Options organised into labelled groups.

Multiple Selection

Combobox allowing multiple items to be selected.

Invalid

Combobox with error border.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Combobox } from "@rokle/components";
import { Combobox } from "@rokle/components";

export function Example() {
  return <Combobox />;
}

API Reference

PropTypeDefaultDescription
options{ label: string; value: string }[]-List of selectable options.
valuestring-Currently selected value.
onValueChange(value: string) => void-Called when selection changes.
placeholderstring"Search…"Input placeholder text.