import type { ReactNode } from "react"; type RevealPanelProps = { /** What always shows. */ children: ReactNode; /** What slides up on hover or keyboard focus. */ reveal: ReactNode; className?: string; /** Look of the panel that slides up. */ panelClassName?: string; }; /* RevealPanel: a panel slides up from the bottom of the card on hover or focus. CSS only. */ export function RevealPanel({ children, reveal, className = "rounded-2xl border border-white/10 bg-[#16132a] p-6 text-white", panelClassName = "bg-[#a78bfa] p-6 text-[#0b0a14]", }: RevealPanelProps) { return (
{children}
{reveal}
); }