Class: ButtonComponentPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- ButtonComponentPreview
- Defined in:
- lib/atomic_view/components/previews/button_component_preview.rb
Overview
ButtonComponent
Sizes collapse
Variants collapse
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
5 6 7 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 5 def default render AtomicView::Components::ButtonComponent.new("Click Me") end |
#lg ⇒ Object
23 24 25 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 23 def lg render AtomicView::Components::ButtonComponent.new("Click Me", size: :lg) end |
#md ⇒ Object
19 20 21 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 19 def md render AtomicView::Components::ButtonComponent.new("Click Me", size: :md) end |
#primary ⇒ Object
31 32 33 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 31 def primary render AtomicView::Components::ButtonComponent.new("Click Me", variant: :primary) end |
#secondary ⇒ Object
35 36 37 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 35 def secondary render AtomicView::Components::ButtonComponent.new("Click Me", variant: :secondary) end |
#sm ⇒ Object
15 16 17 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 15 def sm render AtomicView::Components::ButtonComponent.new("Click Me", size: :sm) end |
#tertiary ⇒ Object
39 40 41 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 39 def tertiary render AtomicView::Components::ButtonComponent.new("Click Me", variant: :tertiary) end |
#xs ⇒ Object
11 12 13 |
# File 'lib/atomic_view/components/previews/button_component_preview.rb', line 11 def xs render AtomicView::Components::ButtonComponent.new("Click Me", size: :xs) end |