Skip to content
nexubDesign System
v2.4.0

Components · Inline Primitives

Text Gradient

StableSince v0.0.1

Renders text with a brand gradient fill.

import { TextGradient } from '@nexub/react';

Examples

Default

In heading

Props

Props
PropTypeDefaultDescription
fromstring—Starting color of the gradient (CSS color value or token).
tostring—Ending color of the gradient (CSS color value or token).
direction'to-r' | 'to-br' | 'to-b'—Direction of the gradient.

On iOS & Android