mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* [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
13 lines
477 B
Ruby
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
|