Toggle


"testToggle": {
"type": "boolean",
"default": true
}
import {
TwebBlockToggleControl,
} from '@tigriweb/components/attributes';
<TwebBlockToggleControl
label={ [
__('Toggle Title On', 'your-theme-name'),
__('Toggle Title Off', 'your-theme-name'),
] }
help={ [
__('Toggle Description On', 'your-theme-name'),
__('Toggle Description Off', 'your-theme-name'),
] }
name="testToggle"
{ ...{ attributes, setAttributes } }
/>
Last updated
Was this helpful?