import clsx from 'clsx' import {forwardRef, MouseEventHandler} from 'react' /** * A clickable container that can include buttons and links that work like you want. * You can even put ClickFrames inside ClickFrames. */ export const ClickFrame = forwardRef( ( props: { children: React.ReactNode onClick: MouseEventHandler className?: string }, ref: React.Ref, ) => { const {children, onClick, className} = props return (
) => e.stopPropagation()} > {children}
) }, )