vira - v31.31.7
    Preparing search index...

    Type Alias ViraFormField

    ViraFormField:
        | {
            type: Text
            | ExistingPassword
            | NewPassword
            | PlainPassword
            | Email;
            value: string | undefined;
        } & PartialWithUndefined<
            { icon: ViraIconSvg; isUsername: boolean; placeholder: string },
        > & CommonViraFormFields
        | {
            options: ReadonlyArray<Readonly<ViraSelectOption>>;
            type: Select;
            value: string | undefined;
        } & PartialWithUndefined<{ icon: ViraIconSvg; placeholder: string }> & CommonViraFormFields
        | { label: HtmlInterpolation; type: Checkbox; value: boolean | undefined } & PartialWithUndefined<
            { fillWhenChecked: boolean; fillWhenUnchecked: boolean },
        > & Omit<CommonViraFormFields, "label">
        | { type: Number; value: number | undefined } & PartialWithUndefined<
            {
                icon: ViraIconSvg;
                max: number;
                min: number;
                placeholder: string;
                step: number;
            },
        > & CommonViraFormFields
        | { type: TextArea; value: string
        | undefined } & PartialWithUndefined<
            { placeholder: string; preventResize: boolean; rows: number },
        > & CommonViraFormFields
        | { type: Date; value: FullDate | undefined } & PartialWithUndefined<
            {
                max: FullDate;
                min: FullDate;
                showDateOnly: boolean;
                showTimeOnly: boolean;
                timezone: Timezone;
            },
        > & CommonViraFormFields

    An individual form field for ViraFormFields.

    Type Declaration

    • {
          type: Text | ExistingPassword | NewPassword | PlainPassword | Email;
          value: string | undefined;
      } & PartialWithUndefined<
          { icon: ViraIconSvg; isUsername: boolean; placeholder: string },
      > & CommonViraFormFields
    • {
          options: ReadonlyArray<Readonly<ViraSelectOption>>;
          type: Select;
          value: string | undefined;
      } & PartialWithUndefined<{ icon: ViraIconSvg; placeholder: string }> & CommonViraFormFields
    • { label: HtmlInterpolation; type: Checkbox; value: boolean | undefined } & PartialWithUndefined<
          { fillWhenChecked: boolean; fillWhenUnchecked: boolean },
      > & Omit<CommonViraFormFields, "label">
      • label: HtmlInterpolation

        Label for the checkbox. Unlike other field types, this accepts arbitrary HTML so the checkbox's label slot can be filled with rich content.

      • type: Checkbox
      • value: boolean | undefined
    • { type: Number; value: number | undefined } & PartialWithUndefined<
          {
              icon: ViraIconSvg;
              max: number;
              min: number;
              placeholder: string;
              step: number;
          },
      > & CommonViraFormFields
    • { type: TextArea; value: string | undefined } & PartialWithUndefined<
          { placeholder: string; preventResize: boolean; rows: number },
      > & CommonViraFormFields
    • { type: Date; value: FullDate | undefined } & PartialWithUndefined<
          {
              max: FullDate;
              min: FullDate;
              showDateOnly: boolean;
              showTimeOnly: boolean;
              timezone: Timezone;
          },
      > & CommonViraFormFields