Closed vadimdemedes closed 1 year ago
This PR updates borderStyle prop in Box to accept an object with this shape:
borderStyle
Box
type BoxStyle = { topLeft: string; top: string; topRight: string; left: string; bottomLeft: string; bottom: string; bottomRight: string; right: string }
For example:
<Box borderStyle={{ topLeft: '↘', top: '↓', topRight: '↙', left: '→', bottomLeft: '↗', bottom: '↑', bottomRight: '↖', right: '←' }} > <Text>Content</Text> </Box>
This allows developers to customize how Ink renders borders around a Box, in case none of the built-in styles provided by cli-boxes don't fit.
cli-boxes
This PR updates
borderStyle
prop inBox
to accept an object with this shape:For example:
This allows developers to customize how Ink renders borders around a
Box
, in case none of the built-in styles provided bycli-boxes
don't fit.