mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
docs(tile): improve docs
This commit is contained in:
parent
c561dfc5e2
commit
a247dd2e06
1 changed files with 6 additions and 0 deletions
|
@ -3,10 +3,16 @@
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</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
|
## Default
|
||||||
|
|
||||||
|
Create a basic tile container for your content.
|
||||||
|
|
||||||
<Tile>Content</Tile>
|
<Tile>Content</Tile>
|
||||||
|
|
||||||
## Light variant
|
## Light variant
|
||||||
|
|
||||||
|
Use the light variant for light-themed backgrounds by setting `light` to `true`.
|
||||||
|
|
||||||
<Tile light>Content</Tile>
|
<Tile light>Content</Tile>
|
Loading…
Add table
Add a link
Reference in a new issue