0.0.1 • Published 3 years ago

@anouar99pac/component-checkbox v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
3 years ago

@ecw-checkbox

Checkbox allow user to opt-in or opt-out of a choice with a single tap.

Installation

npm install @emobg/component-checkbox

Basic usage

HTML Structure

<EcwCheckbox :name="name" :id="id" :value="value" @clicked="handleClick"></EcwCheckbox>

Inputs

NameRequiredDescriptionValues (default in bold)
nameyinput's name attr-
idyelement's id attr-
valueyinput's value attr-
checkednweither the checkbox is checked by default or nottrue, false
disablenweither the checkbox is disabled or nottrue, false

Outputs

NameDescriptionInfos emitted
clickedwhen the user click/tap on the checkboxthe input's value

Style customization

CSS classDescription
ecw-checkboxthe container
ecw-checkbox__inputthe checkbox's input
ecw-checkbox__labelthe content containing the Vue slot
0.0.1

3 years ago