diff --git a/app/views/docs/accordion_view.rb b/app/views/docs/accordion_view.rb index f00d79c..2451710 100644 --- a/app/views/docs/accordion_view.rb +++ b/app/views/docs/accordion_view.rb @@ -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() @@ -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