Update Select component

This commit is contained in:
venashial
2022-06-30 17:42:15 -07:00
parent 846aadd7c6
commit dcc252b371
5 changed files with 178 additions and 66 deletions

View File

@@ -1,3 +1,5 @@
### Default option example
```svelte example raised
<script lang="ts">
import { Select } from 'omorphia'
@@ -15,3 +17,20 @@
]}
bind:value={sortMethod} />
```
### Icon example
```svelte example raised
<script lang="ts">
import { Select } from 'omorphia'
import IconSun from 'virtual:icons/heroicons-outline/sun'
</script>
<Select
options={[
{ value: '1', label: 'Light' },
{ value: '2', label: 'Dark' },
{ value: '3', label: 'OLED' },
]}
icon={IconSun} />
```