diff --git a/src/components/Input/index.tsx b/src/components/Input/index.tsx index ae27e3f..561c035 100644 --- a/src/components/Input/index.tsx +++ b/src/components/Input/index.tsx @@ -17,7 +17,7 @@ type InputProps = { error?: boolean; errorMessage?: string; value: string; - label: string; + label?: string; type?: 'text' | 'email' | 'password' | 'file' | 'number'; placeholder?: string; fullWidth?: boolean; @@ -28,6 +28,7 @@ const Input = ({ type = 'text', color = 'client', label, + placeholder, value, onChange, error, @@ -54,7 +55,13 @@ const Input = ({ )} - + ); diff --git a/src/components/Input/styles.ts b/src/components/Input/styles.ts index b426523..1496d56 100644 --- a/src/components/Input/styles.ts +++ b/src/components/Input/styles.ts @@ -15,7 +15,7 @@ type WrapperProps = { error?: boolean; errorMessage?: string; type?: 'text' | 'email' | 'password' | 'file' | 'number'; - label: string; + label?: string; fullWidth?: boolean; };