Skip to content

Modal

A focused task above the page.

Overlays4 variants2 statesLight + DarkWide · Medium · Compactv1.0
Live preview · click to try it

Variants

4 named variants. Layer names match the names below.

DialogModal / Dialog
ConfirmModal / Confirm
SheetModal / Sheet
Full ScreenModal / Full Screen

States

Modal / Closed
Modal / Open

Usage

Do

  • Confirmations, video, image zoom.

Don't

  • Anything that could be a page.

Properties

PropertyType or optionsDefault
VariantDialog · Confirm · Sheet · Full ScreenDialog
TitleStringLeave this page?
BodyStringAny unsent answers will be lost.
Primary actionStringLeave

Styles it uses

Surface/RaisedInk/PrimaryInk/SecondaryOverlay/VeilOverlay/ShadowAccent/AcidLine/StrongState/Focus

Text: H3 · Body · Button M

Accessibility

  • Keyboard reachable with a visible 3px State/Focus ring.
  • Interactive parts use real buttons and links with accessible names.

Create a free website with Framer, the website builder loved by startups, designers and agencies.