Sha256: c911249e3408732d68360a746800c7227279fc68174216e89a835f1f5b2f003c
Contents?: true
Size: 1.01 KB
Versions: 1772
Compression:
Stored size: 1.01 KB
Contents
import React, { useState } from 'react' import SelectableIcon from '../_selectable_icon' const SelectableIconDefault = () => { const [ checkSelected, toggleSelected ] = useState(true) const [ checkUnselected, toggleUnselected ] = useState(false) const [ checkDisabled, toggleDisabled ] = useState(false) return ( <div className="pb--doc-demo-row"> <SelectableIcon checked={checkSelected} icon="dollar-sign" inputId={10} onChange={() => toggleSelected(!checkSelected)} text="US Dollar" /> <SelectableIcon checked={checkUnselected} icon="euro-sign" inputId={11} onChange={() => toggleUnselected(!checkUnselected)} text="Euro" /> <SelectableIcon checked={checkDisabled} disabled icon="yen-sign" inputId={12} onChange={() => toggleDisabled(!checkDisabled)} text="Yen" /> </div> ) } export default SelectableIconDefault
Version data entries
1,772 entries across 1,772 versions & 2 rubygems