1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00
Maybe/test/components/previews/disclosure_component_preview.rb
Zach Gollwitzer ab6fdbbb68
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions
Component namespacing (#2463)
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT

* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT

* Update stimulus controller references to use namespace

* Fix remaining tests
2025-07-18 08:30:00 -04:00

13 lines
477 B
Ruby

class DisclosureComponentPreview < ViewComponent::Preview
# @display container_classes max-w-[400px]
# @param align select ["left", "right"]
def default(align: "right")
render DS::Disclosure.new(title: "Title", align: align, open: true) do |disclosure|
disclosure.with_summary_content do
content_tag(:p, "$200.25", class: "text-xs font-mono font-medium")
end
content_tag(:p, "Sample disclosure content", class: "text-sm")
end
end
end