• GitHub

TextGradient

The TextGradient is a tiny little component to set a text gradient. You can also optionally pass it random={true} to get a new gradient each time it renders.

Hello, world!

<TextGradient start='#21D4FD' end='#B721FF'>
  <h1>Hello, world!</h1>
</TextGradient>

Usage

import { TextGradient } from '@blocks/kit'

Table of properties

NameTypeDescription
startcolor
endcolor
stopstring
anglestring
randomboolean