Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

NativeSelect

NativeSelectは、ユーザーがオプションのリストから1つを選択するために使用されるコンポーネントです。ブラウザ(ユーザーエージェント)によって提供されるネイティブなドロップダウンリストを表示します。

ソース@yamada-ui/native-select

Props

NativeSelectProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

containerProps

説明

Props for container element.

タイプ

Omit<HTMLUIProps<"div">, "children">

errorBorderColor

説明

The border color when the input is invalid.

タイプ

string

focusBorderColor

説明

The border color when the input is focused.

タイプ

string

iconProps

説明

Props for icon element.

タイプ

HTMLUIProps<"div">

isDisabled

説明

If true, the form control will be disabled.

タイプ

boolean

デフォルト

false

isInvalid

説明

If true, the form control will be invalid.

タイプ

boolean

デフォルト

false

isReadOnly

説明

If true, the form control will be readonly.

タイプ

boolean

デフォルト

false

isRequired

説明

If true, the form control will be required.

タイプ

boolean

デフォルト

false

items

説明

If provided, generate options based on items.

タイプ

NativeSelectItem[]

デフォルト

'[]'

placeholder

説明

The placeholder for select.

タイプ

string

placeholderInOptions

説明

If true, include placeholders in options.

タイプ

boolean

デフォルト

true

size

説明

The size of the NativeSelect.

タイプ

"xs" | "sm" | "md" | "lg"

デフォルト

md

variant

説明

The variant of the NativeSelect.

タイプ

"outline" | "filled" | "flushed" | "unstyled"

デフォルト

outline

NativeOptionGroupProps

NativeOptionProps

GitHubでこのページを編集する

MultiSelectAutocomplete