Form / foldkit-form/metakit

InputAttributes

interface · packages/form/src/metakit.ts:21

interface InputAttributes {
  readonly type: Option.Option<'number' | 'date'>
  readonly inputMode: Option.Option<'numeric' | 'decimal'>
  readonly min: Option.Option<string>
  readonly max: Option.Option<string>
  readonly step: Option.Option<string>
}

What an HTML <input> takes from a key's declaration. Each is none when the declaration says nothing about it, and type is none when the control's own type stands (text, a checkbox, a select).

Members

InputAttributes.type

property · packages/form/src/metakit.ts:22

readonly type: Option.Option<'number' | 'date'>

InputAttributes.inputMode

property · packages/form/src/metakit.ts:23

readonly inputMode: Option.Option<'numeric' | 'decimal'>

InputAttributes.min

property · packages/form/src/metakit.ts:25

readonly min: Option.Option<string>

The lowest value as the control shows it: a day as YYYY-MM-DD, an amount in whole units.

InputAttributes.max

property · packages/form/src/metakit.ts:26

readonly max: Option.Option<string>

InputAttributes.step

property · packages/form/src/metakit.ts:27

readonly step: Option.Option<string>