Skip to content

Type Alias: RIntegerFieldProps

ts
type RIntegerFieldProps = ExtractPublicPropTypes<
  ReturnType<typeof makeRIntegerFieldProps>
>;

Public props interface for RIntegerField components.

Provides type-safe access to all available props with integer-specific constraints. Based on RNumberField props but excludes precision and step for cleaner integer API.

Key Props:

  • modelValue: The current integer value(s) - number | number[] | null | undefined
  • multiple: Enable array input mode with chips
  • format: Numeral.js format string (e.g., "0,0", "#,##0")
  • min/max: Integer range validation
  • controlVariant: Control button layout style
  • renderMode: Display mode ("edit" | "read")

Automatic Constraints:

  • precision: Always 0 (no decimals)
  • step: Always 1 (whole number increments)

Example

typescript
const props: RIntegerFieldProps = {
  modelValue: 42,
  format: "0,0",
  min: 1,
  max: 999999,
  controlVariant: "split",
};