Typography
white-space
Utilities for controlling an element's white-space property.
Quick reference
1 of 7 classes apply on React Native
truncate
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
numberOfLines={1}
ellipsizeMode={tail}
whitespace-break-spaces
white-space: break-spaces;
No native equivalent
whitespace-normal
white-space: normal;
No native equivalent
whitespace-nowrap
white-space: nowrap;
No native equivalent
whitespace-pre
white-space: pre;
No native equivalent
whitespace-pre-line
white-space: pre-line;
No native equivalent
whitespace-pre-wrap
white-space: pre-wrap;
No native equivalent
The React Native column is what AstraWind resolves each class to, computed live on this page with the current color scheme. Classes with no native equivalent are accepted without effect, and AstraWind warns about them in development. See
Compatibility.