Dialog | DialogBody
DialogBody#
Description#
- Dialog body that scrolls on its own, between a header and footer that stay put. When content overflows, it becomes tabbable with a region name so arrow keys can scroll it.
Props#
padding('none'|'sm'|'md') — Vertical padding of the body. Default:'md'.label(string) — Region name when scrolling. Falls back to the catalog (dialog.body) or “Content”.
Usage#
| |
Notes#
- With a
DialogBodyinside,DialogContentswitches to a column layout and stops scrolling itself; the body becomes the scroller. - The region role only exists when content overflows: if everything fits, there is no tabindex or role.