Allow styling of text in Button and modification of Icon size
See original GitHub issueDescribe the feature
At the moment the text styling in Button is hardcoded with a combination of styles. label
and textStyle
neither of which are accessible outside the component.
Also the size
parameter passed to Icon
is fixed to 16 and cannot be changed.
Motivation
I wish to use a button as a larger styling component and in order to make the appearance as I wish I would need to use a larger font and icon
Related Issues
N/A
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Styling icon and text inside a button and centering it
I tried tables and divs and everything, but I cant seem to get them to center the icon and text on the button....
Read more >Sizing Icons | Font Awesome Docs
Font Awesome includes a range of t-shirt based sizes that not only increase or decrease an icon's size, but also help vertically align...
Read more >Styling The Good Ol' Button Element - Ahmad Shadeed
By setting line-height with equal or close value to the button's height, the text will be centered. However, the downsides of this method...
Read more >Wix Editor: Customizing the Design of Your Buttons
Click the Design icon on your button to start customizing. ... Click the toggle to enable shadows. ... Change the size of the...
Read more >Icon Button CSS Styling Guide
This guide will build on the previous episode 'CSS Button Styling Guide' to explore the use case of icon buttons. We'll cover icon...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for a iconSize prop
Commenting for needed feature.