VergeRoot
The container a VergeSlot listens to: a row, a card, a list item. It has no
appearance of its own, only the hover and focus state its slots read. Wrap
the whole row, not just the controls, so the reveal answers to the user
pointing at the row.
Adapted from
Usage
Best practices
Wrap the whole row in
VergeRoot, not just the controls, so hovering or tabbing anywhere in the row reveals them.A nested
VergeRootdoes not isolate its slots: hovering an outer row also reveals an inner row's controls.asandrenderare mutually exclusive (renderwins, dev-warned); useas="li"inside a real list.Keep controls visually small and give them a 44 by 44 pixel hit area on coarse pointers; the slot reserves space but does not own the controls' hit area.
Use
slotsonly to align controls into a column across rows with different counts; otherwise let the children size the slot.Do not use
visibleto say a row matters more; a control drawn on every row at rest is furniture.
Props
VergeRoot
VergeSlot
Also exports
- const
vergeAnatomy - interface
VergeRootProps - interface
VergeSlotProps - type
VergeSlots