Class: Shadcn::Sidebar::Preview

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

Instance Method Summary collapse

Instance Method Details

#defaultObject



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

def default
  render_with_template
end

#floatingObject

Upstream's floating variant. Its own page: the panel is fixed, so two of them cannot share one.



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

def floating
  render_with_template
end

#insetObject

Upstream's inset variant, for the same reason.



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

def inset
  render_with_template
end