Castle logo

CASTLE UI

Search

K

Select allows you to build a wide range of multi and single selects.


Usage

Import

import { Select } from '@passfort/castle'

Copy

Example

Copy

live example

Single Select

Set up a single-select dropdown, including support for disabled options.

Copy

live example

Set up a single-select dropdown, including support for disabled options.

Copy

live example

Multiple Select

Configure a multi-select dropdown with pre-selected values.

Copy

live example

Groups

Group options with Select.Group. optionally include a divider using withDivider prop

Copy

live example

Add a search bar to a single-select dropdown to enable filtering.

Copy

live example

Combine multi-select functionality with a search bar for filtering options.

Copy

live example

Multiple compact

Enable a compact mode for multi-select with search and pre-selected values.

Copy

live example

Compact Select

Create a compact single-select dropdown.

Copy

live example

Search Labels

Select.Label renders the display text for options and registers that text as searchable content for Select.Search

Copy

live example

Custom Select

This is an example of a custom select component that displays a custom value to the button text when a value is selected.

Copy

live example

Contents