base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

<Drawer>

Open corysimmons opened this issue 3 weeks ago • 4 comments

https://ui.shadcn.com/docs/components/sheet

Image

corysimmons avatar Nov 25 '25 21:11 corysimmons

(to be clear I love the lib, just wish it had a few more components -- I can't think of any others that really matter, and there are a few that could be consolidated e.g. Popover with hover delay is essentially a Tooltip)

corysimmons avatar Nov 25 '25 21:11 corysimmons

lol

colmtuite avatar Nov 26 '25 02:11 colmtuite

we want to do drawer as soon as we have time to focus on it. almost certainly next year. btw popover with openOnHover is not at all a tooltip, two very different things.

colmtuite avatar Nov 26 '25 02:11 colmtuite

Cool cool. <3 Ty for having a good sense of humor.

Genuinely curious what the difference in a popover with hover + a delay vs a tooltip is.

corysimmons avatar Nov 26 '25 05:11 corysimmons

I think we can close this one as a duplicate of https://github.com/mui/base-ui/issues/38

flaviendelangle avatar Nov 26 '25 12:11 flaviendelangle

@corysimmons Popover openOnHover can contain interactive content, because even when openOnHover is set, it still works via click, so the component still works for pointer, keyboard, SR, and touch users. Everyone can open the popover and place focus inside, regardless of input mechanism. And because of this, a Popover trigger cannot also trigger another component.

Tooltips have no way to move focus inside, and touch users cannot open them. So they should never contain interactive content, or even non-interactive content that is important. They are purely visual elements for sighted users only. Because of this, a tooltip trigger can also trigger another component like Menu or Popover.

colmtuite avatar Nov 26 '25 14:11 colmtuite