mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39: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
7 lines
276 B
Ruby
7 lines
276 B
Ruby
class AlertComponentPreview < Lookbook::Preview
|
|
# @param message text
|
|
# @param variant select [info, success, warning, error]
|
|
def default(message: "This is an alert message.", variant: :info)
|
|
render DS::Alert.new(message: message, variant: variant.to_sym)
|
|
end
|
|
end
|