NativeSelect
Dropdown lists are used when one needs to select one out of many options.
codeExamples
guidelines
NativeSelect is used when there are many options, and you want to maintain the original select appearance. It is preferred where advanced design is not needed. It is an alternative to Select.
code
<NativeSelect />
import { NativeSelect } from "@vygruppen/spor-react";
A styled version of the native <select /> element
Props
Name | Type | Required? | Description |
|---|---|---|---|
children | React.ReactNode | <option /> elements | |
disabled | boolean | ||
invalid | boolean | ||
label | string | ||
variant | "base" | "floating" | Defaults to base. |