How to wrap text without spaces in the View or Content #3412
Unanswered
makarandkeer
asked this question in
Q&A
Replies: 1 comment
-
View isn't really meant to handle that, it's meant to be a way to access Spectrum CSS variables. You can put a div inside the View and handle overflow and word-break/wrap however you please. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have scenario where read-only text inside View or Content should auto wrap if it goes beyond its fixed width. This work correctly of string has spaces in it. However in some edge cases where text does not have any spaces I wanted it to wrap the text as it is doing when used with TextArea. But with View and Content as shown in SS below text goes outside width of the component,
Refer: https://codesandbox.io/s/react-spectrum-template-forked-iwfyvi?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions