Type alias FormSelectChoice<v, l>

FormSelectChoice<v, l>: {
    label: l;
    value: v;
}

Type Parameters

  • v = string | number
  • l = string

Type declaration

  • label: l
  • value: v

Description

A model to back many of this library's <select> elements. For compatibility, a default for value of string or number is allowed. Made generic to allow arbitrary types (e.g. FormSelectChoice<Locale, string>)