Wrap text inside a flexdashboard valueBox?

Is it possible to wrap text inside a flexdashboard valueBox?

I have a box that contains a business name. It's in a row with five other boxes. I'm making dashboards for each business. When the name is too long, the width of the other boxes becomes too small to read their values in some cases.

I was hoping to break the character string into multiple lines and tried something like this:

owner <- stringr::str_wrap(owner, 18)
valueBox(owner)

Yet that doesn't seem to work. The value of owner created by the stringr::str_wrap() function does have the line breaks I was looking for.

Thanks for the help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.