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

3.0.0 • Public • Published

ink-divider

CircleCI

👩🏼‍🎨 Divider component for Ink.

Install

$ npm install ink-divider

Usage

import React from 'react';
import {render} from 'ink';
import Divider from '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

Package Sidebar

Install

npm i ink-divider

Weekly Downloads

4,430

Version

3.0.0

License

MIT

Unpacked Size

5.92 kB

Total Files

4

Last publish

Collaborators

  • juresotosek