Skip to content

Commit

Permalink
feat: added className prop to Input component
Browse files Browse the repository at this point in the history
  • Loading branch information
RichEwin committed Aug 7, 2023
1 parent 6d60ce2 commit a62104a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ export interface InputProps {
disabled?: boolean;
onChange?: () => void;
placeholder?: string;
className?: string;
}

export const Input = ({ disabled, onChange, placeholder }: InputProps) => {
export const Input = ({
disabled,
onChange,
placeholder,
className,
}: InputProps) => {
return (
<StyledInput
disabled={disabled}
onChange={onChange}
placeholder={placeholder}
className={className}
/>
);
};
Expand Down

0 comments on commit a62104a

Please sign in to comment.