docs: replace h3 with h2 headings (#1452)

This commit is contained in:
metonym 2022-08-17 07:15:29 -07:00 committed by GitHub
commit e2a90005b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 552 additions and 559 deletions

View file

@ -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 />