vadimdemedes / ink

🌈 React for interactive command-line apps
https://term.ink
MIT License
26.42k stars 594 forks source link

Support `Spacer` background color #659

Closed Jordan466 closed 4 months ago

Jordan466 commented 4 months ago

I see a few issues from people asking for background color to be reimplemented for the Box component. It may also be worth considering adding this attribute for Spacer, either as well, or as an alternative to Box.

Seems like the most common use case for the Box background is to apply a common color to a row of text that's be flexed and spaced with justifyContent. But this end could also be achieved if Spacer supported this attribute.

Just something to consider.

Jordan466 commented 4 months ago

Nevermind. I just realized Spacer just returns a box 😂