Adds a Color picker panel in the Makeswift builder to visually edit a RGBA string
prop.
Color panels on a Button component to edit the background and text colors
Text for the panel label in the Makeswift builder.
Position for the color label within the panel.
The value passed to your component when nothing is set in the Makeswift builder. Must be a valid CSS color string.
Indicates whether to hide the alpha channel slider.
What is the alpha channel slider?
The Color control passes a string
RGBA value to your component. If you don’t set a defaultValue
and no value is set in the builder, your component will receive undefined
.
The following examples adds two Color controls to the backgroundColor
and color
props of a Button component.
.makeswift.ts
is a naming convention for organizing Makeswift registration
code. Learn
more.