UNPKG

opensource-ui

Version:

A modern React UI component library with beautiful text effects and spotlight animations

41 lines 1.19 kB
/** * Props interface for the Text component */ export interface TextProps { text?: string | number; fontSize?: number; strokeWidth?: number; fontColor?: string; fontFamily?: string; fontWeight?: string | number; padding?: number; className?: string; style?: React.CSSProperties; spotlight?: boolean; spotlightColor?: string; spotlightRadius?: number | null; spotlightFeather?: number; spotlightGradient?: boolean; gradientTheme?: GradientTheme; } import React from "react"; /** * Predefined gradient themes for spotlight effect */ export declare const GRADIENT_THEMES: Record<string, SpotlightColorStop[]>; export type GradientTheme = keyof typeof GRADIENT_THEMES; /** * Spotlight gradient color interface */ interface SpotlightColorStop { offset: string; color: string; } /** * Main Text component that renders text as individual SVG glyphs * Supports stroke effects, custom fonts, proper Unicode handling, and spotlight effect * Optimized for performance with memoization and minimal re-renders */ declare const Text: React.NamedExoticComponent<TextProps>; export default Text; //# sourceMappingURL=Text.d.ts.map