What it does
- Displays a searchable dropdown menu
- Stores the selected value in state
- Supports static options (basic mode) or dynamic options (code mode)
- Resizable width (120px to 432px)
Modes
Basic Mode
In basic mode, you define options manually in the settings panel:| Setting | Description |
|---|---|
| Options | List of options with display name and value |
| Default Value | Which option is selected by default |
| Width | Horizontal size of the select field |
- Display Name — What the user sees in the dropdown
- Value — The internal value stored in state (auto-generated slug)
Code Mode
In code mode, you write a transform function that returns options dynamically, typically from query data:Transform function (code mode)
Your transform must return an object with anoptions array:
defaultValue: true.
State
The Select component stores both the value and display name in state:Examples
Static status filter (basic mode)
Configure in the settings panel:- Option 1: “All” →
all - Option 2: “Active” →
active - Option 3: “Inactive” →
inactive
Dynamic options from query (code mode)
Options with “All” choice (code mode)
Using select value in a table
When to use each mode
| Use Basic Mode when… | Use Code Mode when… |
|---|---|
| Options are static and known | Options come from database |
| Few options (< 10) | Many options |
| Options rarely change | Options change based on other data |
| No programming needed | Need custom logic |