mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41: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
|
@ -9,14 +9,14 @@ components: ["ContentSwitcher", "Switch"]
|
|||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
### Default
|
||||
## Default
|
||||
|
||||
<ContentSwitcher>
|
||||
<Switch text="Latest news" />
|
||||
<Switch text="Trending" />
|
||||
</ContentSwitcher>
|
||||
|
||||
### Initial selected index
|
||||
## Initial selected index
|
||||
|
||||
<ContentSwitcher selectedIndex={1}>
|
||||
<Switch text="Latest news" />
|
||||
|
@ -24,11 +24,11 @@ components: ["ContentSwitcher", "Switch"]
|
|||
<Switch text="Recommended" />
|
||||
</ContentSwitcher>
|
||||
|
||||
### Reactive example
|
||||
## Reactive example
|
||||
|
||||
<FileSource src="/framed/ContentSwitcher/ContentSwitcherReactive" />
|
||||
|
||||
### Custom switch slot
|
||||
## Custom switch slot
|
||||
|
||||
<ContentSwitcher>
|
||||
<Switch>
|
||||
|
@ -43,21 +43,21 @@ components: ["ContentSwitcher", "Switch"]
|
|||
</Switch>
|
||||
</ContentSwitcher>
|
||||
|
||||
### Extra-large size
|
||||
## Extra-large size
|
||||
|
||||
<ContentSwitcher size="xl">
|
||||
<Switch text="All" />
|
||||
<Switch text="Archived" />
|
||||
</ContentSwitcher>
|
||||
|
||||
### Small size
|
||||
## Small size
|
||||
|
||||
<ContentSwitcher size="sm">
|
||||
<Switch text="All" />
|
||||
<Switch text="Archived" />
|
||||
</ContentSwitcher>
|
||||
|
||||
### Disabled
|
||||
## Disabled
|
||||
|
||||
<ContentSwitcher>
|
||||
<Switch disabled text="All" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue