carbon-components-svelte/src/Button/ButtonSet.svelte
Eric Liu c8e0a59474 feat(button): add stacked prop to ButtonSet
If set to true, buttons will be aligned vertically
2020-09-04 17:35:22 -07:00

14 lines
263 B
Svelte

<script>
/**
* Set to `true` to stack the buttons vertically
* @type {boolean} [stacked=false]
*/
export let stacked = false;
</script>
<div
class:bx--btn-set="{true}"
class:bx--btn-set--stacked="{stacked}"
{...$$restProps}>
<slot />
</div>