mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
docs(button-set): improve docs
This commit is contained in:
parent
6df056fbd5
commit
8af2c512f0
1 changed files with 4 additions and 2 deletions
|
@ -4,9 +4,11 @@
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Group related buttons together in a set. Use this component to create consistent spacing and alignment between multiple buttons.
|
||||||
|
|
||||||
## Default
|
## Default
|
||||||
|
|
||||||
Buttons in a button set are juxtaposed by default.
|
Place buttons side by side in a horizontal layout.
|
||||||
|
|
||||||
<ButtonSet>
|
<ButtonSet>
|
||||||
<Button kind="secondary">Cancel</Button>
|
<Button kind="secondary">Cancel</Button>
|
||||||
|
@ -15,7 +17,7 @@ Buttons in a button set are juxtaposed by default.
|
||||||
|
|
||||||
## Stacked
|
## Stacked
|
||||||
|
|
||||||
Set `stacked` to `true` to use the stacked variant.
|
Set `stacked` to `true` to arrange buttons vertically.
|
||||||
|
|
||||||
<ButtonSet stacked>
|
<ButtonSet stacked>
|
||||||
<Button icon={Login}>Log in</Button>
|
<Button icon={Login}>Log in</Button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue