mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
docs: replace h3
with h2
headings (#1452)
This commit is contained in:
parent
b5c4501903
commit
e2a90005b9
70 changed files with 552 additions and 559 deletions
|
@ -3,33 +3,33 @@
|
|||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
### Default (unchecked)
|
||||
## Default (unchecked)
|
||||
|
||||
<Checkbox labelText="Label text" />
|
||||
|
||||
### Checked
|
||||
## Checked
|
||||
|
||||
<Checkbox labelText="Label text" checked />
|
||||
|
||||
### Indeterminate
|
||||
## Indeterminate
|
||||
|
||||
<Checkbox labelText="Label text" indeterminate />
|
||||
|
||||
### Hidden label
|
||||
## Hidden label
|
||||
|
||||
<Checkbox labelText="Label text" hideLabel />
|
||||
|
||||
### Disabled
|
||||
## Disabled
|
||||
|
||||
<Checkbox labelText="Label text" disabled />
|
||||
|
||||
### Reactive example (bind:checked)
|
||||
## Reactive example (bind:checked)
|
||||
|
||||
The `checked` prop supports two-way binding.
|
||||
|
||||
<FileSource src="/framed/Checkbox/CheckboxReactive" />
|
||||
|
||||
### Reactive example (bind:group)
|
||||
## Reactive example (bind:group)
|
||||
|
||||
An alternative to `checked` is binding an array of values using `group`. This API in inspired by Svelte [group inputs](https://svelte.dev/tutorial/group-inputs).
|
||||
|
||||
|
@ -41,6 +41,6 @@ An alternative to `checked` is binding an array of values using `group`. This AP
|
|||
|
||||
<FileSource src="/framed/Checkbox/MultipleCheckboxes" />
|
||||
|
||||
### Skeleton
|
||||
## Skeleton
|
||||
|
||||
<Checkbox skeleton />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue