mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
docs(button-set): improve copy
This commit is contained in:
parent
25f0473f6d
commit
41284a2570
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,9 @@ source: Button/ButtonSet.svelte
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
### Default (juxtaposed)
|
### Default
|
||||||
|
|
||||||
|
Buttons in a button set are juxtaposed by default.
|
||||||
|
|
||||||
<ButtonSet>
|
<ButtonSet>
|
||||||
<Button kind="secondary">Cancel</Button>
|
<Button kind="secondary">Cancel</Button>
|
||||||
|
@ -17,6 +19,8 @@ source: Button/ButtonSet.svelte
|
||||||
|
|
||||||
### Stacked
|
### Stacked
|
||||||
|
|
||||||
|
Set `stacked` to `true` to use the stacked variant.
|
||||||
|
|
||||||
<ButtonSet stacked>
|
<ButtonSet stacked>
|
||||||
<Button icon={Login16}>Log in</Button>
|
<Button icon={Login16}>Log in</Button>
|
||||||
<Button kind="ghost">Sign up</Button>
|
<Button kind="ghost">Sign up</Button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue