import type { ReactNode } from "react"; type SplitRevealProps = { children: ReactNode; className?: string; onClick?: () => void; /** Label under the face, shown when it splits. Defaults to the same label. */ reveal?: ReactNode; /** Face colour and its label colour. */ face?: [string, string]; /** Colour under the face and its label colour. */ under?: [string, string]; }; /* SplitReveal: on hover the face splits in two, top half up and bottom half down, revealing a second label underneath. CSS only. */ export function SplitReveal({ children, className = "rounded-xl px-9 py-4 text-[15px] font-medium", onClick, reveal, face = ["#a78bfa", "#1a1530"], under = ["#0d0c14", "#ede9fe"], }: SplitRevealProps) { const half = "pointer-events-none absolute inset-0 grid place-items-center transition-transform duration-[400ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none"; return ( ); }