Class: Shadcn::Drawer::Preview

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

Instance Method Summary collapse

Instance Method Details

#defaultObject



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

def default
  render_with_template
end

#scrollableObject

A drawer taller than it can show, which is where the drag has to give way to the scroll.



18
19
20
# File 'app/components/shadcn/drawer/preview.rb', line 18

def scrollable
  render_with_template
end

#scrollable_sideObject

The same list, in a drawer that closes sideways — where the two gestures stop competing and the drag is let through whatever is scrolled.



24
25
26
# File 'app/components/shadcn/drawer/preview.rb', line 24

def scrollable_side
  render_with_template
end

#sidesObject

The other three edges, which the same class string serves — only the data-vaul-drawer-direction changes.



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

def sides
  render_with_template
end