Skip to main content

A Number panel on a Feed component to set the number of items shown

Params

string
default:"Number"
Text for the panel label in the Makeswift builder.
string
The description shown in the Panel of the Makeswift builder. This can be written in Markdown format. Added in v0.24.8.
"horizontal" | "vertical"
default:"horizontal"
Orientation of the number label within the panel.
number
The value passed to your component when nothing is set in the Makeswift builder.
number
default:0
The smallest number that can be set in the panel input.
number
default:0
The largest number that can be set in the panel input.
number
default:1
The increment amount when using the ↑ ↓ arrows or dragging the panel input.
string
Decorative text appended to the end of the panel input.

Prop type

The Number control passes a number to your component. If you don’t set a defaultValue and no value is set in the builder, your component receives undefined.

Example

.makeswift.ts is a naming convention for organizing Makeswift registration code. Learn more.