Select
The select component allows to pick an item from a list.
import {(Select, SelectOption)} from "@makigas/genshi-svelte";
<Select
label="Continent"
helper="Specify your region in order to show the fastest CDNs in your area.">
<SelectOption value="africa">Africa</SelectOption>
<SelectOption value="america">America</SelectOption>
<SelectOption value="asia">Asia</SelectOption>
<SelectOption value="europe">Europe</SelectOption>
<SelectOption value="oceania">Oceania</SelectOption>
</Select>
Specify your region in order to show the fastest CDNs in your area.
You have picked: america
List
Pass the multiple prop to the Select component to render it as a list.
<Select
multiple
rows={3}
label="Continent"
helper="Specify your region in order to show the fastest CDNs in your area.">
<SelectOption value="africa">Africa</SelectOption>
<SelectOption value="america">America</SelectOption>
<SelectOption value="asia">Asia</SelectOption>
<SelectOption value="europe">Europe</SelectOption>
<SelectOption value="oceania">Oceania</SelectOption>
</Select>
Specify your region in order to show the fastest CDNs in your area.
You have picked: america, asia
Disabled
Selects can also be disabled with the disabled prop:
Specify your region in order to show the fastest CDNs in your area.
Specify your region in order to show the fastest CDNs in your area.
Validation
You can add the validation prop to mark the field as valid or invalid with either the "valid" or
"invalid" string. Absence of this prop will mark the field as default.
The resource will be created in this region
There is no remaining quota in this region
Sizes
Select the region where to create the resource
Select the region where to create the resource
Select the region where to create the resource
Select the region where to create the resource
Select the region where to create the resource