@dpa-id-components/ui-button-group

0.1.4 • Public • Published

@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)

Readme

Keywords

none

Package Sidebar

Install

npm i @dpa-id-components/ui-button-group

Weekly Downloads

7

Version

0.1.4

License

MIT

Unpacked Size

79.3 kB

Total Files

10

Last publish

Collaborators

  • goersch.juliane
  • martinherweg
  • borchert.manja
  • roessel.nico
  • karlbanke
  • hajo.cirksena.dpa
  • schubert.florian
  • michelle3105
  • arifpehlivan
  • dpa-connect-deployment
  • antje.sommer
  • mlnmln
  • kgierke
  • andrewbeng89
  • mridul_dpa