-
Notifications
You must be signed in to change notification settings - Fork 67
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(ui): create ToggleButtonGroup component #2995
feat(ui): create ToggleButtonGroup component #2995
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=0fa91f2fef7ed3675e6758a93d8586520467c7db |
I have read the CLA Document and I hereby sign the CLA |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
Outdated
Show resolved
Hide resolved
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.
looks good, just one small nit left :)
Description
Creates
ToggleButtonGroup
common component.https://www.figma.com/design/01KWBdMZg5QM9SRS1pQq0z/Design-System----Robot-Styles?m=auto&node-id=12323-59672&t=GB4Y5hz8mGnYWOfC-1
Allows users to select a single option from a set of toggle buttons. It supports three sizes (
small
,medium
, andlarge
), optional icons, and disabled states. It must have at least two options.ToggleButtonGroup
is built on Radix UI's Toggle Group.Testing
Tested in Storybook (will be in separate
core
PR):Screen.Recording.2024-11-22.at.9.57.13.AM.mov
How was this PR tested?