Skip to main content
ModalBody
@coinbase/cds-web@8.38.5
A main content area component for Modal.
import { ModalBody } from '@coinbase/cds-web/overlays/modal/ModalBody'
Related components

ModalBody provides a scrollable content area for Modal.

Basics

ModalBody renders children with default padding and enables scrolling when content overflows.

Loading...

Scrollable Content

When content exceeds the modal height, ModalBody automatically scrolls. The default overflow="auto" handles this.

Loading...

Accessibility

ModalBody has tabIndex={0} by default, making it focusable for keyboard navigation. Users can Tab to focus the body, then use arrow keys to scroll. Content within ModalBody, such as form controls, remains accessible.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.