Gradient Heading

Generate a gradient-colored heading with customizable tag and gradient direction.

javascript
import { GradientHeading } from '@brainandbones/skeleton';

Skeleton

Usage

html
<GradientHeading tag="h1" direction="bg-gradient-to-r" from="from-primary-500" to="to-accent-500">Skeleton</GradientHeading>

Properties

Prop Type Default Description
tagstringh1Define the semantic element tag.
directionstringbg-gradient-to-rProvide classes to set gradient direction.
fromstringfrom-primary-500Provide classes to set "from" gradient color.
tostringto-accent-500Provide classes to set "to" gradient color.

Accessibility

You are advised to use semantic heading tags (H1-H6), but an explicit ARIA attribute of role="heading" has been applied.