JSPM

ink-gradient

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 163674
  • Score
    100M100P100Q169770F
  • License MIT

Gradient color component for Ink

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 Build Status

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.

License

MIT © Sindre Sorhus