Button with icon in the right side
See original GitHub issueSometimes it is needed to put the icon in the Button component right to text, instead of left. For example when using Buttons in a pagination screen (prev, next).
Tried setting styled={{flexDirection:'row-reverse'}}
via the style prop but the style props is being applied to the outer AnimatedPaper element and not the inner view which sets the direction.
How can make so that the icon will appear right of the text?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:5
Top Results From Across the Web
Right-aligned icon within button at any width - Stack Overflow
The button can be any width; Without an icon present, there is no excess padding on the button; The text and icon always...
Read more >How To Create Icon Buttons - W3Schools
Tip: Go to our Icons Tutorial to learn more about icons. Go to our CSS Buttons Tutorial to learn more about how to...
Read more >Buttons with icons - Leonardo Fernandes
These buttons each have an arrow icon. The next button has an arrow pointing right, aligned to the right of the button.
Read more >Easily Create Buttons With Icons Using HTML & CSS - YouTube
View the Code & CodePen:https://dcode.domenade.com/tutorials/easily-create- buttons-with-icons -html-and-cssIn today's video I'll be showing ...
Read more >Change icons position and add more than one icon in a button
How to make an icon in a button appear on the right side of the text instead of on the left side? How...
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
contentStyle={{flexDirection: ‘row-reverse’}} work for me
I was able to get the icon on the right with the following code:
contentStyle={{flexDirection: 'row-reverse'}}
Full example:
Result: