1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00
Maybe/test/components/previews/button_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

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