InputPropsinterface
{
name: string;
title?: string | undefined;
placeholder?: string | undefined;
required?: boolean | undefined;
disabled?: boolean | undefined;
message?: string | undefined;
}| Property | Type | |
|---|---|---|
.name | string | The name="" prop of the input. required |
.title | string | Friendly title for the input. |
.placeholder | string | Placeholder for the input. Defaults to title. Set to "" to show no placeholder. |
.required | boolean | Whether the input is required. |
.disabled | boolean | Whether the input is disabled. |
.message | string | Any error message for the input. |
Base props shared by every form input (name, title, placeholder, required/disabled state, and error message).