An open API service indexing awesome lists of open source software.

https://github.com/melihs/ms-react-gradient

npm package for creating gradient text component
https://github.com/melihs/ms-react-gradient

component-package gradient gradient-text npm-package react-component-library react-gradient-text

Last synced: 10 months ago
JSON representation

npm package for creating gradient text component

Awesome Lists containing this project

README

          

ms-react-gradient

React component for creating gradient texts

### Install

```js
$ npm install ms-react-gradient
```

or

```
$ yarn add ms-react-gradient
```

### Demo link

> [storybook](https://65e446d14e4260bdc8726536-ytqzgbjtvm.chromatic.com)

### Usage

```js
import TextGradient from 'ms-react-gradient/src';

```

### Props/Options

| Name | Description | Default | type |
|---------------|-------------------------------------------------|---------|----------------------------------------------------------------------------------------------------|
| text | content | | string |
| type | specifies which gradient type the text will be. | linear | "linear" \| "radial" \| "elliptical" \| "repeat-linear" \| "repeat-radial" \| "repeat-elliptical" | |
| animation | brings the animation feature of the text. | | "linear" \| "ease-in-out" \| "ease-in" |
| color1 | first color | | string |
| color2 | second color | | string |
| startPosition | Percent passage of the first color | 0 | string \| number |
| endPosition | Percent passage of the second color | 100 | string \| number |
| style | Custom style definition | | number |