-
-
Notifications
You must be signed in to change notification settings - Fork 132
[all components] Do not pass refs to useButton #2057
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
Conversation
commit: |
Bundle size reportTotal Size Change: ▼-652B(-0.05%) - Total Gzip Change: ▼-260B(-0.05%) Show details for 41 more bundles@base-ui-components/react parsed: ▼-82B(-0.03%) gzip: ▼-6B(-0.01%) |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@@ -12,7 +12,6 @@ const BUTTON_TYPES = new Set(['button', 'submit', 'reset']); | |||
|
|||
export function useButton(parameters: useButton.Parameters = {}): useButton.ReturnValue { |
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.
I think it would be helpful to update the return value buttonRef JSDoc to mention that it's mandatory to pass it to useRenderElement
Removed the deprecated
buttonRef
parameter ofuseButton
. Refs are now merged inuseRenderElement
.