18 lines
644 B
TypeScript
18 lines
644 B
TypeScript
import { cva, type VariantProps } from 'class-variance-authority';
|
|
import { cn } from '~/lib/utils';
|
|
|
|
const glowVariants = cva('pointer-events-none absolute rounded-full', {
|
|
variants: {
|
|
intensity: {
|
|
soft: 'bg-primary/5 blur-[120px]',
|
|
strong: 'bg-primary/10 blur-[140px]',
|
|
},
|
|
},
|
|
defaultVariants: { intensity: 'soft' },
|
|
});
|
|
|
|
// Decorative brand glow; position and size come from className
|
|
export function Glow({ intensity, className }: VariantProps<typeof glowVariants> & { className?: string }) {
|
|
return <div aria-hidden='true' className={cn(glowVariants({ intensity }), className)} />;
|
|
}
|