Skip to content
Styled box component for Ink
Branch: master
Clone or download
Latest commit 3c6627b Mar 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md
screenshot.png
test.js
test.js.md
test.js.snap

readme.md

ink-box Build Status

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

You can’t perform that action at this time.