ink-box

Styled box component for Ink

Use the builtin Box component in Ink instead.
Last updated 3 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ink-box 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

3 Versions

  • 2.0.0 [deprecated]           ...           3 years ago
  • 1.0.0                                ...           8 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 1
This Month 9
Last Day 0
Last Week 4
Last Month 3
Dependencies (2)
Dev Dependencies (13)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE