docs(selectable-tile): improve docs

This commit is contained in:
Eric Liu 2025-05-03 10:44:29 -07:00
commit 6f1c8c6b63

View file

@ -7,8 +7,12 @@ components: ["SelectableTile"]
import Preview from "../../components/Preview.svelte";
</script>
`SelectableTile` provides a tile-based selection interface that allows users to select multiple options. It supports various states and includes built-in keyboard navigation and accessibility features.
## Multi-selectable tiles
Group multiple selectable tiles together for multi-selection scenarios.
<div role="group" aria-label="selectable tiles">
<SelectableTile selected>
Multi-select Tile
@ -23,6 +27,8 @@ components: ["SelectableTile"]
## Light variant
Use the light variant for light backgrounds.
<div role="group" aria-label="selectable tiles">
<SelectableTile light selected>
Multi-select Tile
@ -37,6 +43,8 @@ components: ["SelectableTile"]
## Disabled state
Disable tiles to prevent interaction.
<div role="group" aria-label="selectable tiles">
<SelectableTile selected>
Multi-select Tile