Files
Modrinth-plus/docs/routes/components/CheckboxVirtualList.md

21 lines
409 B
Markdown
Raw Normal View History

```svelte example raised
<script lang="ts">
2022-06-04 00:46:23 -07:00
import { CheckboxVirtualList } from 'omorphia'
import IconStar from 'virtual:icons/heroicons-outline/star'
2022-05-20 00:10:45 -07:00
2022-06-04 00:46:23 -07:00
let options = Array(100)
.fill({})
.map((option, index) => ({
label: 'Star-' + index,
2022-06-04 00:46:23 -07:00
icon: IconStar,
value: index,
2022-06-04 00:46:23 -07:00
}))
2022-05-20 00:10:45 -07:00
let selected = [22, 24]
</script>
2022-06-04 00:46:23 -07:00
<CheckboxVirtualList bind:value={selected} {options} />
Selected: {selected}
```