Select
#
Implementation#
DefaultExample
#
ValidationExample
#
SizingExample
#
RoundedExample
#
Option GroupOption Groups are a great way to group options into their respective sections. Technically, the optiongroup and option elements cannot be styled per browser spec. As a result, using the SelectOptionGroup and SelectOption components are optional and preferential.
Example
#
Right-To-Left (rtl)Example
#
Props#
SelectAttribute | Type | Value | Default Value | Description |
---|---|---|---|---|
size | string | sm/md/lg | md | Set size of text and select element |
success | boolean | true/false | undefined | Green border surrounding select element |
invalid | boolean | true/false | undefined | Red border surrounding input element |
disabled | boolean | true/false | undefined | Disabled select element both in UI and functionality |
rounded | boolean | true/false | Rounded out corners of input to become more circular in presentation | |
rtl | boolean | true/false | When true, sets element to direction of right-to-left (rtl) |
#
SelectOptionAttribute | Type | Value | Default Value | Description |
---|---|---|---|---|
value | string | Html option element built-in value attribute |
#
SelectOptionGroupAttribute | Type | Value | Default Value | Description |
---|---|---|---|---|
label | string | Html option group element built-in label attribute |