[FluentTextArea] Turn off text wrapping? #3842
Answered
by
MarvinKlein1508
Stephen-Lamb
asked this question in
Q&A
-
Hi, it is possible to turn off text wrapping with the FluentTextArea control? According to MDN there's a "wrap" attribute on the textarea control that can do this but I can't figure out how to do this with the FluentTextArea control. Can I do it using shadowRoot or something? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
MarvinKlein1508
May 28, 2025
Replies: 1 comment 3 replies
-
You could try to target the text area in the shadow dom indeed. No idea it it works, though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes this can be achieved by CSS.
You can also use a class for this like this:
And then in razor:
@vnbaaij Stephen is right though there is an attribute called
wrap
which will only get applied to thefluent-text-area
but not the actualtextarea
element itself. Is this something we should address or do we call it a day with the CSS approach?