Gradient color component for Ink
$ npm install ink-gradient
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>
);
It accepts a string or Ink component as children
, for example, ink-box
.
Type: string
Name of a built-in gradient.
Type: string[] | Object[]
Colors to use to make the gradient.
- ink-box - Box component for Ink
- ink-big-text - Awesome text component for Ink
- ink-link - Link component for Ink
MIT © Sindre Sorhus