0.20.2
Popover.Group shares an actionable card across triggers; Popover and HoverCard share placement props
Popover.Group puts a row of triggers, such as avatars, on one shared card that slides from face to face, and a click, tap or Enter pins it so its buttons and links can be reached. Popover and HoverCard now take the same placement props: Popover gains the RTL-aware start and end sides, HoverCard gains hideWhenDetached and positioning.
Spotlight
One card across a row of faces
Put several triggers on one Popover.Group and they share a single card. Hover a face for a preview, move along the row and the same card slides across, with no delay replay. A click, tap or Enter pins it, so its copy button and profile link can be reached.
Changes
- added3
- Popover#420
New
Popover.Group: several triggers share one card people can act on, sliding from trigger to trigger, with the samevaluecontract asHoverCard.Group - Popover#420
positionaccepts the RTL-awarestart/endsides, like HoverCard, Menu and Tooltip - HoverCard#420
hideWhenDetachedand thepositioningescape hatch, matching Popover - changed1
- HoverCard#420
A card hides once its trigger scrolls out of a clipping ancestor (
hideWhenDetachednow defaults totrue); passfalseto keep it following