Skip to content

"unstyled" option for Button? #31460

Answered by spmonahan
benkeen asked this question in Ideas
Discussion options

You must be logged in to vote

You can re-compose the existing Button to omit styles. Example: https://stackblitz.com/edit/zfmtrk?file=src%2Fexample.tsx

Here's the standard implementation for comparison: https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-button/library/src/components/Button/Button.tsx


The advantage of re-composing in this case that rather than override the styles, you just don't ever add them in the first place.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khmakoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants