@dpa-id-components/ui-radio-input

0.6.0 • Public • Published

@dpa-id-components/ui-radio-input

UiRadioInput Vue 2.x input component based on the dpa Design Kit

Installation

yarn add @dpa-id-components/ui-radio-input

Usage

<template>
  <UiRadioInput v-model="options" />
</template>

<script>
  import UiRadioInput from "@dpa-id-components/ui-radio-input";

  export default {
    components: {
      UiRadioInput,
    }

    data() {
      return {
        options: [
          { name: "Vor Ort Name", value: "Vor Ort Value", checked: true },
          {
            name: "Online Name",
            value: "Online Value",
            checked: false,
          },
          { name: "Hybrid Name", value: "Hybrid value", checked: false },
        ],
      };
    },
  };
</script>

Demo

View a demo of <ui-radio-input> on Storybook

API

Props

Name Type Default Description
groupName String RadioGroup common name for Radio Input Group
value Array [{name:'', value:'', isChecked:false}] Array with RadioMenu specific content

Events

Name Type Description
input ChangeEvent triggerd when the radioButton is clicked

Readme

Keywords

none

Package Sidebar

Install

npm i @dpa-id-components/ui-radio-input

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

365 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