Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

pavkout
Copy link
Contributor

@pavkout pavkout commented Feb 26, 2025

image

Closes INS-5035

@pavkout pavkout self-assigned this Feb 26, 2025
@pavkout pavkout requested a review from a team February 26, 2025 14:05
@godfrzero
Copy link
Contributor

Let's wait until after v11 is shipped to merge additional changes, by the way.

@pavkout pavkout force-pushed the feature/ins-5035 branch from f1f497e to ccf38a8 Compare March 3, 2025 13:54
useEffect(() => {
if (checkRef.current) {
checkRef.current.checked = checked;
checkRef.current.indeterminate = indeterminate;
Copy link
Contributor

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

Copy link
Contributor Author

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) => {
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants