Class: ButtonComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/atomic_view/components/previews/button_component_preview.rb

Overview

ButtonComponent

Sizes collapse

Variants collapse

Instance Method Summary collapse

Instance Method Details

#defaultObject



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

#lgObject



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

#mdObject



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

#primaryObject



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

#secondaryObject



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

#smObject



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

#tertiaryObject



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

#xsObject



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