mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(contained-list): add ContainedList
, ContainedListItem
(#1971)
This commit is contained in:
parent
cf41756cf4
commit
b6df277647
11 changed files with 484 additions and 2 deletions
9
tests/ContainedList.test.svelte
Normal file
9
tests/ContainedList.test.svelte
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script lang="ts">
|
||||
import { ContainedList, ContainedListItem } from "../types";
|
||||
</script>
|
||||
|
||||
<ContainedList labelText="Title" kind="on-page">
|
||||
<div slot="labelText">Title</div>
|
||||
<ContainedListItem interactive disabled on:click>Item 1</ContainedListItem>
|
||||
<svelte:fragment slot="action" />
|
||||
</ContainedList>
|
Loading…
Add table
Add a link
Reference in a new issue