You've already forked AstralRinth
forked from didirus/AstralRinth
Update Select component
This commit is contained in:
@@ -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} />
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user