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
It'd be nice if <Box> could take a backgroundColor property. Currently to render a box with a background color, you have to figure out the max length of all the lines in the box, and create appropriately padded <Text> components, which is a bit of a pain.
The background of a <Box> should be smart enough to restore after a <Text> that sets the background color, so for example:
Old version of Ink used to have this, but it had many issues, so I ended up removing this feature altogether in Ink 3. Might give it another shot again though, but can't promise any ETA.
I think we should make ink have some kind of compositing renderer...Box background color, dialog boxes, and other absolutely positioned elements would all be a lot easier if ink did layered rendering.
It'd be nice if
<Box>
could take abackgroundColor
property. Currently to render a box with a background color, you have to figure out the max length of all the lines in the box, and create appropriately padded<Text>
components, which is a bit of a pain.The background of a
<Box>
should be smart enough to restore after a<Text>
that sets the background color, so for example:would render an
x
on a red background, surrounded by 1 block of blue around it.The text was updated successfully, but these errors were encountered: