You've already forked AstralRinth
forked from didirus/AstralRinth
24 lines
514 B
Markdown
24 lines
514 B
Markdown
```svelte example
|
|
<script lang="ts">
|
|
import { CheckboxVirtualList } from "omorphia";
|
|
import IconStar from 'virtual:icons/heroicons-outline/star'
|
|
import uniqueId from 'lodash.uniqueid'
|
|
|
|
let options = Array(100).fill({})
|
|
.map(option => ({
|
|
label: 'Star-' + uniqueId(),
|
|
icon: IconStar,
|
|
value: uniqueId(),
|
|
}))
|
|
|
|
let selected = ['2', '6']
|
|
</script>
|
|
|
|
<CheckboxVirtualList
|
|
bind:value={selected}
|
|
{options}
|
|
/>
|
|
|
|
Selected: {selected}
|
|
```
|