mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
test: assert new types
This commit is contained in:
parent
56625762c7
commit
a8242952d9
3 changed files with 15 additions and 2 deletions
|
@ -11,6 +11,9 @@
|
||||||
maxLabel="990 MB"
|
maxLabel="990 MB"
|
||||||
value="{100}"
|
value="{100}"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
on:change="{(e) => {
|
||||||
|
console.log(e.detail); // number
|
||||||
|
}}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Slider
|
<Slider
|
||||||
|
|
|
@ -11,7 +11,13 @@
|
||||||
import CheckmarkFilled from "carbon-icons-svelte/lib/CheckmarkFilled.svelte";
|
import CheckmarkFilled from "carbon-icons-svelte/lib/CheckmarkFilled.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<StructuredList>
|
<StructuredList
|
||||||
|
selection
|
||||||
|
selected="row-1-value"
|
||||||
|
on:change="{(e) => {
|
||||||
|
console.log(e.detail); // string
|
||||||
|
}}"
|
||||||
|
>
|
||||||
<StructuredListHead>
|
<StructuredListHead>
|
||||||
<StructuredListRow head>
|
<StructuredListRow head>
|
||||||
<StructuredListCell head>Column A</StructuredListCell>
|
<StructuredListCell head>Column A</StructuredListCell>
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
import { Tabs, Tab, TabContent, TabsSkeleton } from "../types";
|
import { Tabs, Tab, TabContent, TabsSkeleton } from "../types";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tabs>
|
<Tabs
|
||||||
|
on:change="{(e) => {
|
||||||
|
console.log(e.detail); // number
|
||||||
|
}}"
|
||||||
|
>
|
||||||
<Tab label="Tab label 1" />
|
<Tab label="Tab label 1" />
|
||||||
<Tab label="Tab label 2" />
|
<Tab label="Tab label 2" />
|
||||||
<Tab label="Tab label 3" />
|
<Tab label="Tab label 3" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue