Skip to content

Commit

Permalink
Add SidebarSectionComponentPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Dec 11, 2024
1 parent 53b6bea commit e5beb1f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/components/previews/sidebar_section_component_preview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

class SidebarSectionComponentPreview < ViewComponent::Preview
def default
render(
SidebarSectionComponent.new(
title: 'Title',
)
) do
content_tag(:span, 'Content')
end
end
end

0 comments on commit e5beb1f

Please sign in to comment.