jetformbuilder
/
modules
/
framework
/
blocks-style-manager
/
assets
/
src
/
components
/
controls
/
toggle.jsx
jetformbuilder
/
modules
/
framework
/
blocks-style-manager
/
assets
/
src
/
components
/
controls
Last commit date
border.jsx
3 months ago
choose.jsx
3 months ago
color.jsx
3 months ago
dimensions.jsx
3 months ago
heading.jsx
3 months ago
range.jsx
3 months ago
text.jsx
3 months ago
toggle.jsx
3 months ago
typography.jsx
3 months ago
toggle.jsx
17 lines
| 1 | import { ToggleControl } from '@wordpress/components'; |
| 2 | |
| 3 | const ControlToggle = ( { control, value, handleChange } ) => { |
| 4 | |
| 5 | return ( |
| 6 | <ToggleControl |
| 7 | label={ control.label } |
| 8 | checked={ value } |
| 9 | onChange={ handleChange } |
| 10 | help={ control.help } |
| 11 | disabled={ control.disabled } |
| 12 | className="crocoblock-style-manager__toggle-control" |
| 13 | /> |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | export default ControlToggle; |