Controls
Font
The Font
control allows you select a fontFamily
, fontStyle
, and fontWeight
.
Params
Text for the panel label in the Makeswift Visual Builder.
A boolean to determine whether fontStyle
and fontWeight
are included in
the final value. This value changes what panel inputs are shown in the
Makeswift builder, and changes the type of defaultValue.
The default value passed to your component when no value is available. This object includes three properties:
fontFamily
-string
fontStyle
-"normal" | "italic"
fontWeight
-number
Without defaultValue
the data passed to your component is optional.
Example
Prop type
The Font
control passes an object with the following properties:
Was this page helpful?