@dpa-id-components/ui-button-group
v0.1.4
Published
UiButtonGroup vue component with dpa Design Kit
Downloads
3
Maintainers
Keywords
Readme
@dpa-id-components/ui-button-group
UiButtonGroup
Vue 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-group
Usage
<!-- 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
) |