0.1.4 • Published 3 years ago
@dpa-id-components/ui-button-group v0.1.4
@dpa-id-components/ui-button-group
UiButtonGroupVue 2.x input component based on the dpa Design Kit
A container component for groups of UiButton or UiRadioButton components.
Installation
yarn add @dpa-id-components/ui-button-groupUsage
<!-- SomeComponent.vue using UiButtonGroup -->
<template>
<ui-button-group>
<ui-button>Foo</ui-button>
<ui-button>Bar</ui-button>
<ui-button>Baz</ui-button>
</ui-button-group>
</template>
<script>
import UiButton from "@dpa-id-components/ui-button";
import UiButtonGroup from "@dpa-id-components/ui-button-group";
export default {
components: {
UiButton,
UiButtonGroup
}
};
</script>Demo
View a demo of <ui-button-group> on Storybook
API
Slots
| Name | Description |
|---|---|
default | slot for the contain the button groups's content (either UiButton or UiRadioButton) |