Select

A dropdown menu for selecting a single option from a predefined list.

The Select field displays a dropdown menu with options you define in the Attributes Manager. Users can click to open the dropdown and select one option from the list. This is perfect for cases where you have multiple choices but want a compact interface. The field stores a single value as a string, making it easy to use in conditional logic or class names in your PHP code.

Preview in Attributes Manager

Fancoolo fields select

Select field. Preview in Gutenberg Editor

Fancoolo fields in gutenberg select

Technical Information:

PropertyValue
Gutenberg UIDropdown menu
Data Typestring (selected value)
SelectionSingle selection only (returns one value)
ReturnsArray with one selected value
Default ValueFirst option value or ""
RequiresOptions list (label + value pairs)
Best ForSingle choice from multiple options
Common UsesSize selection, alignment, layout style, theme