TEXT_FIELD_TYPE
enum
Form & Input
TypeScript enum for the HTML input type attribute values supported by OrigamTextField and related field components.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- TEXT_FIELD_TYPE.TEXT
- Single-line plain text input.
- TEXT_FIELD_TYPE.NUMBER
- Numeric input with optional stepper controls.
- TEXT_FIELD_TYPE.EMAIL
- Email address input — browser validates basic format.
- TEXT_FIELD_TYPE.PASSWORD
- Password input — characters are masked.
- TEXT_FIELD_TYPE.HIDDEN
- Hidden input — not rendered visually, used for form data.
- TEXT_FIELD_TYPE.SEARCH
- Search input — may display a clear button in some browsers.
- TEXT_FIELD_TYPE.TEL
- Telephone number input — shows numeric keyboard on mobile.
- TEXT_FIELD_TYPE.URL
- URL input — browser may validate format.
- TEXT_FIELD_TYPE.IMAGE
- Image submit button.
- TEXT_FIELD_TYPE.RANGE
- Range slider input.
- TEXT_FIELD_TYPE.FILE
- File picker input.
- TEXT_FIELD_TYPE.COLOR
- Colour picker input.
- TEXT_FIELD_TYPE.SUBMIT
- Form submit button.
- TEXT_FIELD_TYPE.BUTTON
- Generic button (no default behaviour).
- TEXT_FIELD_TYPE.RESET
- Form reset button — clears all fields to their default values.
- TEXT_FIELD_TYPE.CHECKBOX
- Checkbox toggle input.
- TEXT_FIELD_TYPE.RADIO
- Radio button input.
- TEXT_FIELD_TYPE.TIME
- Time input (HH:MM).
- TEXT_FIELD_TYPE.DATETIME
- Date-and-time input (datetime-local).
- TEXT_FIELD_TYPE.DATE
- Date input (YYYY-MM-DD).
- TEXT_FIELD_TYPE.MONTH
- Month and year input.
- TEXT_FIELD_TYPE.WEEK
- ISO week number input.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using the enum in script setup