| Current Path : /proc/self/root/usr/local/lib/node_modules/@google/gemini-cli/node_modules/ink-gradient/ |
| Current File : //proc/self/root/usr/local/lib/node_modules/@google/gemini-cli/node_modules/ink-gradient/readme.md |
# ink-gradient
> Gradient color component for [Ink](https://github.com/vadimdemedes/ink)

## Install
```sh
npm install ink-gradient
```
## Usage
```js
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/>`](https://github.com/vadimdemedes/ink#box).
#### Props
##### name
Type: `string`
The name of a [built-in gradient](https://github.com/bokub/gradient-string#available-built-in-gradients).
Mutually exclusive with `colors`.
##### colors
Type: `string[] | object[]`
[Colors to use to make the gradient.](https://github.com/bokub/gradient-string#initialize-a-gradient)
Mutually exclusive with `name`.
## Related
- [ink-big-text](https://github.com/sindresorhus/ink-big-text) - Awesome text component for Ink
- [ink-link](https://github.com/sindresorhus/ink-link) - Link component for Ink