-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: Create checkbox UI Component #8419
base: develop
Are you sure you want to change the base?
Conversation
Let's wait until after v11 is shipped to merge additional changes, by the way. |
f1f497e
to
ccf38a8
Compare
ccf38a8
to
31405e3
Compare
useEffect(() => { | ||
if (checkRef.current) { | ||
checkRef.current.checked = checked; | ||
checkRef.current.indeterminate = indeterminate; |
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.
how do we handle indeterminate status with the new checkbox?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
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.
@marckong We never used this component.
children: React.ReactNode; | ||
} & CheckboxProps; | ||
|
||
export const Checkbox = ({ children, ...props }: Props) => { |
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.
We might want to pass a ref object here in case if it needs a handle to be controlled by its parent?
Closes INS-5035