rokle

Personality

20
40
70
15

Active brand: Meridian

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

Listbox

Scrollable list of selectable options with single or multiple selection and keyboard navigation.

Examples

Basic with selected item

Single-select listbox with the active item highlighted.

Multi-select

Multiple items can be toggled on or off simultaneously.

With groups

Items organised into named sections with visual separators.

Disabled items

Some options are disabled and show a locked badge.

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 { Listbox } from "@rokle/components";
import { Listbox } from "@rokle/components";

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

API Reference

PropTypeDefaultDescription
options{ label: string; value: string }[]-List of available options.
valuestring | string[]-Selected value or values.
multiplebooleanfalseAllow multiple selection.