Sha256: 339b8df902c4cb347c0ea01e81b5281af476eb209f3efa6859674d0f30419cfd
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
/* @flow */ import React from 'react' type CheckboxProps = { dark?: Boolean, tag: String, label: String, name:String, value:String, checked?: Boolean, } const Checkbox = ({ dark=false, tag='label', label, name='', value='', checked=false, }: CheckboxProps) => { const Tag = `${tag}` return ( <Tag className={ `pb_checkbox_kit` + (dark === true ? '_dark' : '') } > <input type="checkbox" name={name} value={value} defaultChecked={checked}/> <span className="pb_checkbox_checkmark"> <i className="far fa-check check_icon"></i> </span> <span className="pb_checkbox_label"> {label} </span> </Tag> ) } export default Checkbox
Version data entries
4 entries across 4 versions & 1 rubygems