@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
32 lines • 1.37 kB
TypeScript
import { type Transition } from "motion/react";
import * as React from "react";
/** Props accepted by {@link GradientText}. */
export interface GradientTextProps extends React.HTMLAttributes<HTMLSpanElement> {
/** Text content rendered with the animated gradient fill. @default undefined */
text: string;
/** CSS gradient string assigned to the animated text fill. @default "linear-gradient(90deg, #3b82f6 0%, #a855f7 20%, #ec4899 50%, #a855f7 80%, #3b82f6 100%)" */
gradient?: string;
/** Adds a blurred neon duplicate behind the primary text layer. @default false */
neon?: boolean;
/** Motion timing used for the animated gradient background. @default {duration: 50, repeat: Infinity, ease: "linear"} */
transition?: Transition;
}
/**
* Renders animated gradient-filled text with an optional neon glow layer.
*
* @remarks
* - Animated component using the `motion` library
* - Renders a `<span>` element
* - Styling via CSS Modules with `--ac-*` custom properties
* - Client-side only (`"use client"` directive)
*
* @example
* ```tsx
* <GradientText text="Launch ready" />
* ```
*
* @see {@link GradientTextProps} for available props
*/
declare const GradientText: React.ForwardRefExoticComponent<GradientTextProps & React.RefAttributes<HTMLSpanElement>>;
export { GradientText };
//# sourceMappingURL=gradient-text.d.ts.map