jetformbuilder
/
modules
/
framework
/
blocks-style-manager
/
assets
/
src
/
components
/
controls
/
dimensions.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
dimensions.jsx
19 lines
| 1 | import { BoxControl } from '@wordpress/components'; |
| 2 | |
| 3 | const ControlDimensions = ( { control, value, handleChange } ) => { |
| 4 | |
| 5 | return ( |
| 6 | <BoxControl |
| 7 | label={ control.label } |
| 8 | values={ value } |
| 9 | value={ value } |
| 10 | onChange={ ( newValue ) => handleChange( newValue ) } |
| 11 | className="crocoblock-style-manager__dimensions-control" |
| 12 | __experimentalIsRenderedInSidebar={ true } |
| 13 | __next40pxDefaultSize |
| 14 | __nextHasNoMarginBottom |
| 15 | /> |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | export default ControlDimensions; |