Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.
/ ink-box Public archive

Styled box component for Ink

License

Notifications You must be signed in to change notification settings

sindresorhus/ink-box

Repository files navigation

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