Ink Gradient Save

Gradient color component for Ink

Project README

ink-gradient

Gradient color component for Ink

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, <Box/>.

Props

name

Type: string

The name of a built-in gradient.

Mutually exclusive with colors.

colors

Type: string[] | object[]

Colors to use to make the gradient.

Mutually exclusive with name.

Open Source Agenda is not affiliated with "Ink Gradient" Project. README Source: sindresorhus/ink-gradient
Stars
145
Open Issues
2
Last Commit
10 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating