Skip to content

Commit

Permalink
1st OK
Browse files Browse the repository at this point in the history
  • Loading branch information
pierry01 committed Oct 23, 2024
1 parent 434b783 commit 9069819
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions app/views/docs/accordion_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def view_template
@@code = <<~RUBY
div(class: "w-full") do
Accordion do
AccordionItem do
AccordionItem(default: open) do
AccordionTrigger do
p(class: "font-medium") { "What is PhlexUI?" }
AccordionIcon()
Expand Down Expand Up @@ -45,27 +45,6 @@ def view_template
RUBY
end

render Docs::VisualCodeExample.new(title: "Default Open", context: self) do
@@code = <<~RUBY
div(class: "w-full") do
Accordion do
AccordionItem(open: true) do
AccordionTrigger do
p(class: "font-medium") { "What is PhlexUI?" }
AccordionIcon()
end
AccordionContent do
p(class: "text-sm pb-4") do
"PhlexUI is a UI component library for Ruby devs who want to build better, faster."
end
end
end
end
end
RUBY
end

render Docs::ComponentsTable.new(component_references(component, @@code), component_files(component))
end
end
Expand Down

0 comments on commit 9069819

Please sign in to comment.