New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Box
background color
#598
Labels
Comments
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. |
vadimdemedes
changed the title
Box backgroundColor property
Support Jun 4, 2023
Box
background color
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: