ink-box
Version:
Styled box component for Ink
51 lines (29 loc) • 921 B
Markdown
This is deprecated as Ink has a builtin `Box` component now.
---
> Styled box component for [Ink](https://github.com/vadimdemedes/ink)

```
$ npm install ink-box
```
```js
import React from 'react';
import {render, Color} from 'ink';
import Box from 'ink-box';
render(
<Box borderStyle="round" borderColor="cyan" float="center" padding={1}>
I Love <Color magenta>Unicorns</Color>
</Box>
);
```
Props are passed as options to [`boxen`](https://github.com/sindresorhus/boxen#options).
- [ink-gradient](https://github.com/sindresorhus/ink-gradient) - Gradient color component for Ink
- [ink-link](https://github.com/sindresorhus/ink-link) - Link component for Ink
- [ink-big-text](https://github.com/sindresorhus/ink-big-text) - Awesome text component for Ink
MIT © [Sindre Sorhus](https://sindresorhus.com)