Class: Shadcn::Resizable::Preview

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

Instance Method Summary collapse

Instance Method Details

#defaultObject

Upstream's own first example: two panels side by side.



7
8
9
# File 'app/components/shadcn/resizable/preview.rb', line 7

def default
  render_with_template
end

#verticalObject

Upstream's "Vertical".



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

def vertical
  render_with_template
end

#with_handleObject

Upstream's "With Handle", and a nested group — a row inside a column, which is the layout the docs use to show both at once.



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

def with_handle
  render_with_template
end