Class: Shadcn::Dialog::Preview

Inherits:
ApplicationViewComponentPreview show all
Defined in:
app/components/shadcn/dialog/preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



6
7
8
# File 'app/components/shadcn/dialog/preview.rb', line 6

def default
  render_with_template
end

#inside_stacking_contextObject

The case the layering has to survive: a modal opened from inside an ancestor that creates a stacking context.



12
13
14
# File 'app/components/shadcn/dialog/preview.rb', line 12

def inside_stacking_context
  render_with_template
end

#no_close_buttonObject

Upstream's "No Close Button": the corner dismiss left out.



17
18
19
# File 'app/components/shadcn/dialog/preview.rb', line 17

def no_close_button
  render_with_template
end

#scrollable_contentObject

Upstream's "Scrollable Content": a body that scrolls under a header and footer that do not.



23
24
25
# File 'app/components/shadcn/dialog/preview.rb', line 23

def scrollable_content
  render_with_template
end