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

17 lines
506 B
Ruby
Raw Permalink Normal View History

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