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, <Box/>
.
Type: string
The name of a built-in gradient.
Mutually exclusive with colors
.
Type: string[] | object[]
Colors to use to make the gradient.
Mutually exclusive with name
.
- ink-big-text - Awesome text component for Ink
- ink-link - Link component for Ink