To best understand Makeswift, there are a few core concepts for which to establish common vocabulary.
string
to your component with a TextInput
, TextArea
, Select
, or Combobox
control. Here are all of the basic controls:
There are three special basic controls that are designed for specific types of props such as className
and children
:
RichText
control provides a ReactNode
to your component and then renders an inline rich text editor wherever the builder renders the ReactNode
.
Slot
control provides a ReactNode
to your component and places a drop zone wherever the builder renders the prop. Users can then add components visually to that drop zone.
Style
control provides multiple and that modify various CSS properties. This data is then passed to your component as a string
value.
array
or object
to a prop of your component. Composable controls have a type
property that can recursively contain any control. The List
control is used to modify props that expect an array
, and the Shape
control is used to modify props that expect an object
.