mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
add Checkbox and TextInput wrapper components
This commit is contained in:
parent
c8587c7432
commit
f60535b881
2 changed files with 14 additions and 0 deletions
7
docs/src/components/playground/Checkbox.svelte
Normal file
7
docs/src/components/playground/Checkbox.svelte
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script>
|
||||
import { Checkbox } from "carbon-components-svelte";
|
||||
|
||||
export let value = undefined;
|
||||
</script>
|
||||
|
||||
<Checkbox bind:checked="{value}" {...$$restProps} />
|
7
docs/src/components/playground/TextInput.svelte
Normal file
7
docs/src/components/playground/TextInput.svelte
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script>
|
||||
import { TextInput } from "carbon-components-svelte";
|
||||
|
||||
export let value;
|
||||
</script>
|
||||
|
||||
<TextInput style="margin-bottom: 1rem;" bind:value {...$$restProps} />
|
Loading…
Add table
Add a link
Reference in a new issue