docs(tile): improve docs

This commit is contained in:
Eric Liu 2025-05-03 11:02:02 -07:00
commit a247dd2e06

View file

@ -3,10 +3,16 @@
import Preview from "../../components/Preview.svelte";
</script>
`Tile` provides a container for displaying content in a structured, card-like format. It supports light and dark variants and can be used to create consistent, visually distinct content sections.
## Default
Create a basic tile container for your content.
<Tile>Content</Tile>
## Light variant
Use the light variant for light-themed backgrounds by setting `light` to `true`.
<Tile light>Content</Tile>