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