ink-divider

December 13, 2024 ยท View on GitHub

NPM Downloads NPM Version

๐Ÿ‘ฉ๐Ÿผโ€๐ŸŽจ Divider component for Ink.

๐Ÿ“ฅ Install

npm i ink-divider

๐Ÿš€ Usage

Here is the basic usage:

import { render } from 'ink'
import Divider from 'ink-divider'

render(<Divider title='Title' />)

// โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Title โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

The <Divider> component can also automatically adjust to the width of the container! We advise you to view this example - examples/auto-grow.tsx, more examples in the examples folder

example

๐Ÿค Contributing

Thank you for your interest in helping this project ๐Ÿ˜Ž, detailed instructions on contributing are at CONTRIBUTING.md

๐Ÿ“ License

MIT ยฉ Jure Sotosek