@hoststack/ui / components / IInput
Defined in: components.ts:416
Input component props - form input field with validation and actions
<Input
name="email"
type="email"
placeholder="Enter your email"
error={hasError}
errorMessage="Please enter a valid email"
submitFunction={handleSubmit}
/>ComponentPropsWithRef<"input">
optionalcopy:boolean
Defined in: components.ts:418
Whether to show a copy button for the input value
optionalcss:CSS
Defined in: components.ts:420
Custom CSS styles
optionalerror:boolean
Defined in: components.ts:422
Whether the input is in an error state
optionalerrorMessage:string
Defined in: components.ts:424
Error message to display below the input
optionalid:string
Defined in: components.ts:426
HTML id attribute for the input
ComponentPropsWithRef.id
optionallisten:boolean
Defined in: components.ts:428
Whether to listen for form validation events
optionalloading:boolean
Defined in: components.ts:430
Whether to show a loading state
name:
string
Defined in: components.ts:432
Name attribute for the input (required)
ComponentPropsWithRef.name
optionalreset:boolean
Defined in: components.ts:434
Whether to show a reset button
optionalresetFunction: () =>void
Defined in: components.ts:436
Function to call when reset button is clicked
void
optionalreveal:boolean
Defined in: components.ts:438
Whether to show/hide toggle for password inputs
optionalsubmit:string
Defined in: components.ts:440
Text for the submit button
optionalsubmitFunction: (value) =>unknown
Defined in: components.ts:442
Function to call when submit action is triggered
string
unknown
optionalsubmitValid: (value) =>boolean
Defined in: components.ts:444
Function to validate input value before submit
string
boolean
optionalsuccess:boolean
Defined in: components.ts:446
Whether the input is in a success state
optionalsuccessMessage:string
Defined in: components.ts:448
Success message to display below the input
optionalwarning:boolean
Defined in: components.ts:450
Whether the input is in a warning state
optionalwarningMessage:string
Defined in: components.ts:452
Warning message to display below the input
optionalwidth:string|number
Defined in: components.ts:454
Width of the input field
ComponentPropsWithRef.width