Skip to content

Public useButton hook #1674

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

Open
michael-land opened this issue Apr 5, 2025 · 3 comments
Open

Public useButton hook #1674

michael-land opened this issue Apr 5, 2025 · 3 comments
Labels
new feature New feature or request waiting for 👍 Waiting for upvotes

Comments

@michael-land
Copy link

michael-land commented Apr 5, 2025

Feature request

Summary

Expose the useButton hook allows developers to build additional widget with consistent behavior.

Examples in other libraries

N/A

Motivation

As building custom UI components, I want to leverage the same underlying logic used by the library’s useButton hook - such as keyboard interactions, ARIA attributes, and event normalization—without having to reimplement accessibility features from scratch or copy paste to main own version.

@michael-land michael-land added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 5, 2025
@mj12albert mj12albert added new feature New feature or request waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 7, 2025
@mj12albert mj12albert changed the title expose useButton hook Public useButton hook Apr 7, 2025
@mj12albert
Copy link
Member

@michael-land We don't have any plans to do this, and the API is not refined for public use.
I'll label this waiting for upvotes for now, but can't promise anything at the moment 🙏

@Studio384
Copy link

Are there plans to implement a Button component like old Base UI has (and Material UI/Joy UI)?

@colmtuite
Copy link
Contributor

@Studio384 No plans at the moment. What would you want Base UI Button to handle? What would the component do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

4 participants