nodegui / react-nodegui

Build performant, native and cross-platform desktop applications with native React + powerful CSS like styling.🚀
https://react.nodegui.org
MIT License
6.18k stars 171 forks source link

Add `elideMode` to `Text` component #362

Open NinZine opened 2 years ago

NinZine commented 2 years ago

Given your Text component has a size, you can add elideMode={TextElideMode.ElideRight} to emulate similar behavior as the CSS property text-overflow: ellipsis, for example.