|
|
|
@ -3,6 +3,8 @@ export interface TextInputControlPropsNoLabel {
@@ -3,6 +3,8 @@ export interface TextInputControlPropsNoLabel {
|
|
|
|
|
onUnFocus?: () => void; |
|
|
|
|
onFocus?: () => void; |
|
|
|
|
value?: string; |
|
|
|
|
name?: string; |
|
|
|
|
autoComplete?: string; |
|
|
|
|
placeholder?: string; |
|
|
|
|
className?: string; |
|
|
|
|
} |
|
|
|
@ -16,6 +18,8 @@ export function TextInputControl({
@@ -16,6 +18,8 @@ export function TextInputControl({
|
|
|
|
|
onUnFocus, |
|
|
|
|
value, |
|
|
|
|
label, |
|
|
|
|
name, |
|
|
|
|
autoComplete, |
|
|
|
|
className, |
|
|
|
|
placeholder, |
|
|
|
|
onFocus, |
|
|
|
@ -27,6 +31,8 @@ export function TextInputControl({
@@ -27,6 +31,8 @@ export function TextInputControl({
|
|
|
|
|
placeholder={placeholder} |
|
|
|
|
onChange={(e) => onChange && onChange(e.target.value)} |
|
|
|
|
value={value} |
|
|
|
|
name={name} |
|
|
|
|
autoComplete={autoComplete} |
|
|
|
|
onBlur={() => onUnFocus && onUnFocus()} |
|
|
|
|
onFocus={() => onFocus?.()} |
|
|
|
|
/> |
|
|
|
|