Skip to content

Pattern for Reusable Button Wrapper #7511

Answered by snowystinger
stevegreco asked this question in Q&A
Discussion options

You must be logged in to vote

We extend ButtonProps from RAC, but we omit children from it and change it to what we actually expose
https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/s2/src/Button.tsx#L54

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevegreco
Comment options

Answer selected by stevegreco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants