Pages
Introduction Colors & Tokens Icons
UI
Button Link Badge Notification Badge Alert Card Spinner Avatar Divider Empty State
Interactive
Modal Side Modal Dropdown Tooltip Accordion Tabs Flash Toast Support Button
Forms
Form Select Toggle Checkbox & Radio Text Fields Date & Time Fields
Layout
Navbar Sidebar Table Pagination Breadcrumbs Selector List
Utilities
Local Time
app_theme v1.39.1

Side Modal

A panel that slides in from the edge of the screen — for detail views and secondary flows.

Positions

Right panel

Slides in from the right (default).

Left panel

Slides in from the left.

.demo-row
  = app_theme_side_modal do |modal|
    - modal.with_trigger do
      = app_theme_button "Open right panel", variant: :secondary
    - modal.with_header do
      Right panel
    - modal.with_body do
      %p Slides in from the right (default).
  = app_theme_side_modal(position: :left) do |modal|
    - modal.with_trigger do
      = app_theme_button "Open left panel", variant: :secondary
    - modal.with_header do
      Left panel
    - modal.with_body do
      %p Slides in from the left.
    - modal.with_footer do
      = app_theme_button "Done", variant: :primary