UNPKG

@paperbits/forms

Version:
43 lines (35 loc) 724 B
import { Contract } from "@paperbits/common"; import { LocalStyles } from "@paperbits/common/styles"; /** * Range input data contract. */ export interface RangeInputContract extends Contract { /** * Label on the range input. */ label: string; /** * Field name. Used in form submission. */ name: string; /** * Minimum value. */ minValue: number; /** * Maximum value. */ maxValue: number; /** * Initial value. */ value: number; /** * Indicates that field is readonly. */ readonly: boolean; /** * Range input local styles. */ styles?: LocalStyles; }