0.1.4 • Published 2 years ago

@dpa-id-components/ui-button-group v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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

NameDescription
defaultslot for the contain the button groups's content (either UiButton or UiRadioButton)
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago