Documentation
Select

Select

The Select component is a customizable dropdown menu that allows users to choose from a list of options. It supports various sizes, labels, and additional elements like prefixes and suffixes, making it versatile for different UI needs.

Usage

First of all, you need to import the Select component from the kitchn package.

import { Select } from "kitchn"

Default

Sizes

Sizes, Prefix and Suffix

Disabled

Prefix and suffix disabled

Label

Props

NameTypeDefaultRequiredDescription
size"small" | "normal" | "large""normal"NoThe size of the select dropdown.
labelstringundefinedNoThe label displayed above the select dropdown.
placeholderstringundefinedNoThe placeholder text shown in the dropdown before any option is selected.
prefixJSX.Element | stringundefinedNoAn element or text to display before the dropdown selector.
suffixJSX.Element | stringArrow IconNoAn element or text to display after the dropdown selector. By default, an arrow icon is used.
disabledbooleanfalseNoIf true, disables the select input.