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

ModalFooter provides a consistent action area for Modal. It accepts primaryAction and optional secondaryAction buttons with responsive layout behavior.

Basics

Pass a primaryAction button to create a simple footer. The footer automatically displays a top border.

Loading...

Two Actions

Add a secondaryAction for cancel/dismiss patterns. On larger screens, buttons display side-by-side. On smaller screens, they stack vertically with the primary action on top.

Loading...

Destructive Actions

Use variant="negative" on the primary button for destructive actions.

Loading...

Loading State

Show a loading state on the primary button while an action is processing.

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.