1.0.3 • Published 4 years ago

shapla-radio v1.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

shapla-radio

A custom radio vue component that works like native radio component.

Table of contents

Installation

npm i shapla-radio

Usage

Add the component:

import shaplaRadio from 'shapla-radio';

export default {
    name: 'Hello',

    components: {
        shaplaRadio
    },
    data() {
        return {
            option: 'one',
            options: [
                {label: 'One', value: 'one'},
                {label: 'Two', value: 'two'},
                {label: 'Three', value: 'three'},
            ],
        }
    }
}
<shapla-radio v-for="_option in options" :key="_option.value" :value="_option.value" v-model="option">{{_option.label}}</shapla-radio>

Props

PropertyTypeRequiredDefaultDescription
labelStringno | Radio label
valueStringno | Radio value
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago