Min/Max
The #[MinMax]
property type will render a pair of numeric input fields in the field properties panel,
allowing you to define minimum and maximum values.
use Solspace\Freeform\Attributes\Property\Input\MinMax;
// ...
#[MinMax(
label: 'Age Range',
instructions: 'Select the age range.',
)]
protected array $ageRange = [null, null];
The resulting range will be stored as an array with two elements: the first being the minimum value, and the second being the maximum value.