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
12 lines
276 B
Ruby
12 lines
276 B
Ruby
class DS::Disclosure < DesignSystemComponent
|
|
renders_one :summary_content
|
|
|
|
attr_reader :title, :align, :open, :opts
|
|
|
|
def initialize(title: nil, align: "right", open: false, **opts)
|
|
@title = title
|
|
@align = align.to_sym
|
|
@open = open
|
|
@opts = opts
|
|
end
|
|
end
|