Possible to handle multiline for button with Icon and Text?
See original GitHub issueI have a button as below
<Button
iconLeft
warning
block
large
onPress={this.someFunc}
>
<Icon name='ios-browsers' />
<Text>{flexiTextWidth}</Text>
</Button>
I have the above button which working fine with fixed text, but if the content flexiTextWidth
is very long then it will be cutted off. I’m wondering if there is any way where the button can support multi-line? I’ve tried to set multiline attribute at <Text>
but doesnt seems to do anything. Wondering how we can handle the height depending on the text length?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Icon next to multi-line button [duplicate] - html - Stack Overflow
My goal is to create a button that has multi-line text and an icon next to it that is centered for both lines....
Read more >Elementor Multi Line Button with Icon (No Plugin) - YouTube
In this tutorial, I'll show you How to Create Multi Line Button with Icon just by using Elementor Page Builder 🔥🔥No additional plugin...
Read more >How to make multi-line text in UIButton - Sarunw
To make a multi-line text in UIButton, you insert a new line character ( \n ) wherever you want in button title and...
Read more >A multiline button is possible! - InfoWorld
A: The short answer: you can't do it without a bit of work on your part. The JButton does not intrinsically have the...
Read more >[SOLVED] Create a button with multiple lines of text. - Wix.com
Having the possibility to make a button with multiple lines of text would fix my problem and also bring the possibility of square...
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
Any suggestion on how to handle the translated text with unknown text length? For now I’m manipulating the button height using manual calculation based on number of chars