Skip to main content

Component <Select />

Props

PropsTypeMeaningPossible values
sizestringChange select sizesm / md
shapestringChange borders shaperounded / squared
minWidthnumberChange options modal min widthfrom 0 to any number
selectedValuestring / number / booleanSet select selected optionany of type
handleOnChangefunctionCheange select option(value: string) => void



States

Examples:

<Select>
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>

<Select>
<Option value="the-beatles" disabled>The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones" disabled>The Rolling Stones</Option>
</Select>

<Select disabled>
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>
The Beatles
Led Zeppelin
The Beatles



Sizes

Examples:

<Select size="sm">
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>

<Select size="md">
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>
The Beatles
The Beatles



Shapes

Examples:

<Select shape="rounded">
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>

<Select shape="squared">
<Option value="the-beatles">The Beatles</Option>
<Option value="led-zeppelin">Led Zeppelin</Option>
<Option value="the-rolling-stones">The Rolling Stones</Option>
</Select>
The Beatles
The Beatles