Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 8x | import type { HTMLAttributes } from 'react';
/**
* Elevated popover surface (e.g. the feedback comment). Positioning is the
* caller's job, typically an absolutely positioned element inside a
* `position: relative` anchor, passed via `className`.
*/
export function Popover({ className, children, role = 'dialog', ...rest }: HTMLAttributes<HTMLDivElement>) {
return (
<div className={['popover', className].filter(Boolean).join(' ')} role={role} {...rest}>
{children}
</div>
);
}
|