sindresorhus / Ink Gradient
Licence: mit
Gradient color component for Ink
Stars: ✭ 123
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Ink Gradient
Wonders
🌈 Declarative JavaScript framework to build command-line applications.
Stars: ✭ 34 (-72.36%)
Mutual labels: cli, jsx
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-40.65%)
Mutual labels: cli, npm-package
Cli Mandelbrot
📦 View the Mandelbrot set from your terminal
Stars: ✭ 59 (-52.03%)
Mutual labels: cli, npm-package
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-26.83%)
Mutual labels: cli, npm-package
Nord Termite
An arctic, north-bluish clean and elegant Termite color theme.
Stars: ✭ 104 (-15.45%)
Mutual labels: cli, colors
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (-7.32%)
Mutual labels: gradients, colors
Github Spray
Draw on your GitHub contribution graph ░▒▓█
Stars: ✭ 908 (+638.21%)
Mutual labels: cli, npm-package
Yarpm
CLI tool to run npm scripts with either npm or yarn, depending on how it was started
Stars: ✭ 13 (-89.43%)
Mutual labels: cli, npm-package
Mevn Cli
Light speed setup for MEVN(Mongo Express Vue Node) Apps
Stars: ✭ 696 (+465.85%)
Mutual labels: cli, npm-package
Colorette
Easily set the color and style of text in the terminal.
Stars: ✭ 1,047 (+751.22%)
Mutual labels: cli, colors
Wordup Cli
Wordup is a fully integrated development platform for WordPress. Develop plugins and themes locally. Preview in the cloud. Automatic updates in WP.
Stars: ✭ 116 (-5.69%)
Mutual labels: cli, npm-package
Tml
🌈💻🎨 A tiny markup language for terminal output. Makes formatting output in CLI apps easier!
Stars: ✭ 634 (+415.45%)
Mutual labels: cli, colors
Kit
Tools for developing, documenting, and testing React component libraries
Stars: ✭ 1,201 (+876.42%)
Mutual labels: cli, jsx
ink-gradient
Gradient color component for Ink
Looking for a version compatible with Ink 2.x? Check out this release.
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, 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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].