This package has been deprecated

Author message:

Use the builtin Box component in Ink instead.

ink-box
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/ink-box package

2.0.0 • Public • Published

This is deprecated as Ink has a builtin Box component now.


ink-box

Styled box component for Ink

Install

$ npm install ink-box

Usage

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>
);

API

<Box>

Props are passed as options to boxen.

Related

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i ink-box

Weekly Downloads

5,614

Version

2.0.0

License

MIT

Unpacked Size

5.29 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus