mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +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
16 lines
506 B
Ruby
16 lines
506 B
Ruby
class ButtonComponentPreview < ViewComponent::Preview
|
|
# @param variant select {{ DS::Button::VARIANTS.keys }}
|
|
# @param size select {{ DS::Button::SIZES.keys }}
|
|
# @param disabled toggle
|
|
# @param icon select ["plus", "circle"]
|
|
def default(variant: "primary", size: "md", disabled: false, icon: "plus")
|
|
render DS::Button.new(
|
|
text: "Sample button",
|
|
variant: variant,
|
|
size: size,
|
|
disabled: disabled,
|
|
icon: icon,
|
|
data: { menu_target: "button" }
|
|
)
|
|
end
|
|
end
|