Skip to content

JureSotosek/ink-divider

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

πŸ‘¨πŸΌβ€πŸŽ¨ Divider component for Ink

Resources

License

Stars

Watchers

Forks

Packages

No packages published