bereact-ui
Version:
Bibliothèque de composants React open-source
32 lines (31 loc) • 1.19 kB
TypeScript
interface BaseProps {
/** text */
text: string;
/** default Consolas */
fontFamily?: string;
/** css font color */
color?: string;
/** delay default: 0.1 */
delay?: number;
/** jump height in px default: 10 */
jumpHeight?: number;
/** animation time in second default: 1 */
animationTime?: number;
/** css font-size default: 1em */
fontSize?: string;
}
interface WithHueColor extends BaseProps {
/** base hue color hsl(${hueColor + (variation * index) % 360}, 100%, 50%) */
hueColor: number;
/** hue color variation hsl(${hueColor + (variation * index) % 360}, 100%, 50%) */
variation: number;
}
interface WithoutHueColor extends BaseProps {
/** base hue color variation hsl(${hueColor + (variation * index) % 360}, 100%, 50%) */
hueColor?: never;
/** hue color variation hsl(${hueColor + (variation * index) % 360}, 100%, 50%) */
variation?: never;
}
type WavyTextProps = WithHueColor | WithoutHueColor;
export default function WavyText({ text, fontFamily, color, variation, hueColor, delay, jumpHeight, animationTime, fontSize }: WavyTextProps): import("react/jsx-runtime").JSX.Element;
export {};