mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
* chore: add license badge to README * perf(docs): ignore node_modules in markdown preprocessor * docs: remove tabs for install commands on homepage * docs(button-set): improve copy * docs(button): improve usage for icon-only, link buttons * docs: various copy improvements
27 lines
No EOL
578 B
Text
27 lines
No EOL
578 B
Text
---
|
|
source: Button/ButtonSet.svelte
|
|
---
|
|
|
|
<script>
|
|
import { Button, ButtonSet } from "carbon-components-svelte";
|
|
import Login16 from "carbon-icons-svelte/lib/Login16";
|
|
import Preview from "../../components/Preview.svelte";
|
|
</script>
|
|
|
|
### Default
|
|
|
|
Buttons in a button set are juxtaposed by default.
|
|
|
|
<ButtonSet>
|
|
<Button kind="secondary">Cancel</Button>
|
|
<Button>Submit</Button>
|
|
</ButtonSet>
|
|
|
|
### Stacked
|
|
|
|
Set `stacked` to `true` to use the stacked variant.
|
|
|
|
<ButtonSet stacked>
|
|
<Button icon={Login16}>Log in</Button>
|
|
<Button kind="ghost">Sign up</Button>
|
|
</ButtonSet> |