Adds a Select option (dropdown) to a component in the Makeswift builder to visually select a string
value.
A Select panel for a Button component to change the style
v0.24.8
.SelectOption<T>
that contains the options available in the panel input.label
field is displayed in the Makeswift builder.T
from the selected Option
to your component. If you don’t set a defaultValue
and no value is set in the builder, your component will receive undefined
.
variant
prop of a Button component.
.makeswift.ts
is a naming convention for organizing Makeswift registration
code. Learn
more.