Skip to content

Numbers

NumberBox

NumberBox allows you to add a number type input.

Parameters:

Name Type Description Default
name str

A name.

required
help str | None

A help text. Defaults to None.

None
initial int | float | None

An initial value. Defaults to None.

None
label str | None

A label. Defaults to None.

None
required bool | None

Whether it's required or not. Defaults to None.

None
validation str | None

A formkit validation in addition to required. Defaults to None.

None
ar.NumberBox("number")

RangeField

RangeField allows you to add a range type input.

Parameters:

Name Type Description Default
name str

Name.

required
min int | float

A min value.

required
max int | float

A max value.

required
step int | float

A step value.

required
help str | None

A help text. Defaults to None.

None
initial int | float | None

An initial value. Defaults to None.

None
label str | None

A label. Defaults to None.

None
validation str | None

A formkit validation in addition to required. Defaults to None.

None
ar.RangeField(name="range", min=0, max=100, step=10)