| 1 |
/// <reference types="react" /> |
| 2 |
export interface TextInputGroupMainProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> { |
| 3 |
/** Content rendered inside the text input group main div */ |
| 4 |
children?: React.ReactNode; |
| 5 |
/** Additional classes applied to the text input group main container */ |
| 6 |
className?: string; |
| 7 |
/** Icon to be shown on the left side of the text input group main container */ |
| 8 |
icon?: React.ReactNode; |
| 9 |
/** Type that the input accepts. */ |
| 10 |
type?: 'text' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'time' | 'url'; |
| 11 |
/** Suggestion that will show up like a placeholder even with text in the input */ |
| 12 |
hint?: string; |
| 13 |
/** Callback for when there is a change in the input field*/ |
| 14 |
onChange?: (event: React.FormEvent<HTMLInputElement>, value: string) => void; |
| 15 |
/** Callback for when the input field is focused*/ |
| 16 |
onFocus?: (event?: any) => void; |
| 17 |
/** Callback for when focus is lost on the input field*/ |
| 18 |
onBlur?: (event?: any) => void; |
| 19 |
/** Accessibility label for the input */ |
| 20 |
'aria-label'?: string; |
| 21 |
/** Value for the input */ |
| 22 |
value?: string | number; |
| 23 |
/** Placeholder value for the input */ |
| 24 |
placeholder?: string; |
| 25 |
/** @hide A reference object to attach to the input box */ |
| 26 |
innerRef?: React.RefObject<any>; |
| 27 |
/** Name for the input */ |
| 28 |
name?: string; |
| 29 |
/** The id of the active element. Required if role has a value of "combobox", and focus |
| 30 |
* should remain on the input. |
| 31 |
*/ |
| 32 |
'aria-activedescendant'?: string; |
| 33 |
/** Determines the accessible role of the input. */ |
| 34 |
role?: string; |
| 35 |
/** Flag for whether an associated element controlled by the input is visible. Required if |
| 36 |
* role has a value of "combobox". |
| 37 |
*/ |
| 38 |
isExpanded?: boolean; |
| 39 |
/** The id of the element(s) controlled by the input. Required if role has a value of "combobox". */ |
| 40 |
'aria-controls'?: string; |
| 41 |
/** The id of the input element */ |
| 42 |
inputId?: string; |
| 43 |
/** Additional props to spread to the input element. */ |
| 44 |
inputProps?: any; |
| 45 |
} |
| 46 |
export declare const TextInputGroupMain: import("react").ForwardRefExoticComponent<Omit<TextInputGroupMainProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>; |
| 47 |
//# sourceMappingURL=TextInputGroupMain.d.ts.map |