👨🏼‍🎨Divider component for Ink
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
examples
media
src
.gitattributes
.gitignore
.npmrc
license
package.json
readme.md
test.js
yarn.lock

readme.md

ink-divider

CircleCI

👩🏼‍🎨 Divider component for Ink.

Install

$ npm install ink-divider

Usage

const { h, render } = require('ink');
const Divider = require('ink-divider');

render(<Divider title={'Title'} />);

Props

title

Type: string
Default: ""

Title shown in the middle of the divider.

width

Type: number
Default: 50

Width of the divider.

padding

Type: number
Default: 1

Padding at the start and the end of the divider.

titlePadding

Type: number
Default: 1

Padding besides the title in the middle.

titleColor

Type: string
Default: "white"

Color of the title.

dividerChar

Type: string
Default: "-"

Char used as a divider.

dividerColor

Type: string
Default: "gray"

Color of the divider chars.

License

MIT © Jure Sotosek