Package Exports
- ink-gradient
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ink-gradient) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ink-gradient 
Gradient color component for Ink
Install
$ npm install ink-gradient
Usage
import {h, render} = from 'ink';
import Gradient from 'ink-gradient';
import BigText from 'ink-big-text';
render(
<div>
<Gradient name="rainbow">
<BigText text="unicorns"/>
</Gradient>
</div>
);
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.
Related
- ink-box - Box component for Ink
- ink-big-text - Awesome text component for Ink
- ink-link - Link component for Ink
License
MIT © Sindre Sorhus