@cmds/switch

0.2.0 • Public • Published

Switch

npm package

Used for making a choice between yes and no.

Getting started

npm install @cmds/switch --save

Prop Types

Property Type Required? Description
id String Unique identifier for the field
className String Add a className to the component
value String Checked / unchecked value
width Number Set the width of the switch. Default: 46
disabled Boolean Prevents the user from toggling the switch. Default: false
onChange Function Triggers when the value changes: ({id: string, value: string})

More information

This component is designed and developed as part of Cosmos Design System.

/@cmds/switch/

    Package Sidebar

    Install

    npm i @cmds/switch

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    155 kB

    Total Files

    8

    Last publish

    Collaborators

    • entercosmos