Styled box component for Ink
$ npm install ink-box
This is deprecated as Ink has a builtin Box component now.
Styled box component for Ink
$ npm install ink-box
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>
);
<Box>Props are passed as options to boxen.
MIT © Sindre Sorhus
© 2010 - cnpmjs.org x YWFE | Home | YWFE