You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If width and/or height are specified, the lines are normalized by appending empty spaces and newlines respectively/removing characters to fit the dimensions.
If padding is specified, empty spaces and new lines are added on sides. padding is applied before applying height and width. padding can contain shorthand values or paddingLeft, paddingTop, paddingBottom and paddingRight can be specified to customize the padding on the sides.
If backgroundColor is specified it's applied before margin, but after height, width, padding and border.
If margin is specified, it acts similarly to padding, but is applied after applying height, width, padding and borderStyle.
If borderStyle is specified, text is added on all sides after normalizing the lines by appending empty spaces. The value of the borderStyle property could be a string (e.g. solid, double) or take a custom preset object for applying the borders. For example, a preset object might look like following:
We probably also need to add display: 'block' | 'inline' and allow specifying these properties only on block elements. Because otherwise it'll be confusing how to handle these cases:
<Textheight={5}>Hey</Text>Wow
Or maybe we just add a verticalAlign style to correctly position the Wow text next to Hey which has a height.
The text was updated successfully, but these errors were encountered:
If
width
and/orheight
are specified, the lines are normalized by appending empty spaces and newlines respectively/removing characters to fit the dimensions.If
padding
is specified, empty spaces and new lines are added on sides.padding
is applied before applyingheight
andwidth
.padding
can contain shorthand values orpaddingLeft
,paddingTop
,paddingBottom
andpaddingRight
can be specified to customize the padding on the sides.If
backgroundColor
is specified it's applied beforemargin
, but afterheight
,width
,padding
andborder
.If
margin
is specified, it acts similarly topadding
, but is applied after applyingheight
,width
,padding
andborderStyle
.If
borderStyle
is specified, text is added on all sides after normalizing the lines by appending empty spaces. The value of theborderStyle
property could be a string (e.g.solid
,double
) or take a custom preset object for applying the borders. For example, a preset object might look like following:We probably also need to add
display: 'block' | 'inline'
and allow specifying these properties only on block elements. Because otherwise it'll be confusing how to handle these cases:Or maybe we just add a
verticalAlign
style to correctly position theWow
text next toHey
which has a height.The text was updated successfully, but these errors were encountered: