Skip to main content
v7

Modal

Responsive dialog, drawer, and bottom-sheet surfaces for temporary tasks.

Package@g4rcez/componentsSectionFloating Elements

Examples

Dialog

A standard dialog modal with title, closable button, and overlay-click-to-close.

Drawer Left

A drawer that slides in from the left side of the screen.

Drawer Right

A drawer that slides in from the right side of the screen.

Sheet

A bottom sheet that slides up from the bottom, ideal for mobile. Dialogs and drawers become sheets on mobile.

Bottom Sheet or just Sheet it's a component that opens from bottom to top. It's very useful for mobile apps. That's why dialog and drawer are changed to sheet on mobile.

When to use Modal

Use when

Use Modal when a task needs temporary focus, confirmation, or a contained surface above the current page.

Avoid when

Avoid a modal for information that can remain in the page flow or for a simple link destination.

Accessibility

Use a descriptive title, keep focus inside the open surface, close on Escape, and return focus to the trigger.