mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
* docs: link source code to folder for multiple components * chore(docs): remove unused `source` from frontmatter
23 lines
No EOL
536 B
Text
23 lines
No EOL
536 B
Text
<script>
|
|
import { Button, ButtonSet } from "carbon-components-svelte";
|
|
import Login from "carbon-icons-svelte/lib/Login.svelte";
|
|
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={Login}>Log in</Button>
|
|
<Button kind="ghost">Sign up</Button>
|
|
</ButtonSet> |