mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-22 16:06:50 +00:00
23 lines
440 B
TypeScript
23 lines
440 B
TypeScript
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { cn } from "~/lib/utils";
|
|
|
|
import styles from "./rainbow-text.module.css";
|
|
|
|
export function RainbowText({
|
|
animated,
|
|
className,
|
|
children,
|
|
}: {
|
|
animated?: boolean;
|
|
className?: string;
|
|
children?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<span className={cn(animated && styles.animated, className)}>
|
|
{children}
|
|
</span>
|
|
);
|
|
}
|