ig

ink-gradient

Gradient color component for Ink

Showing:

Popularity

Downloads/wk

4.7K

GitHub Stars

129

Maintenance

Last Commit

10mos ago

Contributors

3

Package

Dependencies

3

Size (min+gzip)

15.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

React Gradient

Readme

ink-gradient Build Status

Gradient color component for Ink

Looking for a version compatible with Ink 2.x? Check out this release.

Install

$ npm install ink-gradient

Usage

import React from 'react';
import {render} from 'ink';
import Gradient from 'ink-gradient';
import BigText from 'ink-big-text';

render(
    <Gradient name="rainbow">
        <BigText text="unicorns"/>
    </Gradient>
);

API

<Gradient>

It accepts a string or Ink component as children, for example, ink-box.

Props

name

Type: string

Name of a built-in gradient.

colors

Type: string[] | object[]

Colors to use to make the gradient.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial