-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inputs implementation #271
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/Input/Input.tsx
Outdated
"color" | "width" | "height" | "size" | ||
> & { | ||
children?: ReactNode; | ||
disabled?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: disabled
is already part of InputHTMLAttributes
interface
disabled?: boolean; |
src/components/Input/Input.tsx
Outdated
const [active, setActive] = useState(false); | ||
const typed = Boolean(inputValue || active); | ||
|
||
const handleChange = (evt: React.ChangeEvent<HTMLInputElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I'd rather use e | event
for event name
Ref: #232 (partially closes)