Text filled with an ink-to-accent gradient.
Quiet gradient ink
npx @agents-npm-packages/vibeui add gradient-text --dir ./src/components/uiImport
import { GradientText } from "@/components/ui/gradient-text"Generated from the component's TypeScript types, so it always matches the source. * marks a required prop.
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | — | Content rendered inside the component. |
| className | string | — | Extra classes, merged with the component's own. |
import { cn } from "@/lib/utils";
/** Text filled with an ink-to-accent gradient. */
export function GradientText({
children,
className,
}: {
children: React.ReactNode;
className?: string;
}) {
return (
<span
className={cn(
"bg-[linear-gradient(100deg,var(--ink)_0%,var(--accent)_55%,var(--ink)_110%)] bg-clip-text text-transparent",
className,
)}
>
{children}
</span>
);
}
Exports GradientText. Peer dependencies: clsx, tailwind-merge.