Select

"testSelect": {
"type": "string",
"default": "choice3"
}
import {
TwebBlockSelectControl,
} from '@tigriweb/components/attributes';
<TwebBlockSelectControl
label={ __('Select Label', 'your-theme-name') }
help={ __('Select Description', 'your-theme-name') }
choices={ {
'choice1': __('Choise 1', 'your-theme-name'),
'choice2': __('Choise 2', 'your-theme-name'),
'choice3': __('Choise 3', 'your-theme-name'),
} }
name="testSelect"
{ ...{ attributes, setAttributes } }
/>
Last updated
Was this helpful?