
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
ink-gradient
Advanced tools
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>
);
<Gradient>It accepts a string or Ink component as children. For example, <Box/>.
The content to colorize.
Multiple <Text> children are treated as separate nodes, which preserves layout when <Gradient> is placed inside a <Box flexDirection="column">.
If you want a continuous gradient across multiple lines, pass a single string or a single <Text> with \n.
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.
FAQs
Gradient color component for Ink
The npm package ink-gradient receives a total of 91,601 weekly downloads. As such, ink-gradient popularity was classified as popular.
We found that ink-gradient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.