feat(auth): add separate default input component
This commit is contained in:
19
src/features/auth/ui/DefaultInput/DefaultInput.tsx
Normal file
19
src/features/auth/ui/DefaultInput/DefaultInput.tsx
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import type { InputHTMLAttributes } from "react";
|
||||||
|
|
||||||
|
export type InputAttributes = InputHTMLAttributes<HTMLInputElement>;
|
||||||
|
|
||||||
|
export function DefaultInputComponent({
|
||||||
|
type,
|
||||||
|
value,
|
||||||
|
onChange,
|
||||||
|
["aria-label"]: ariaLabel,
|
||||||
|
}: InputAttributes) {
|
||||||
|
return (
|
||||||
|
<input
|
||||||
|
type={type}
|
||||||
|
value={value}
|
||||||
|
onChange={onChange}
|
||||||
|
aria-label={ariaLabel}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user