Class: Onboarding::ActionCardComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/onboarding/action_card_component.rb

Constant Summary collapse

VARIANT_OPTIONS =
[:default, :success, :promo].freeze

Instance Method Summary collapse

Constructor Details

#initialize(title: nil, description: nil, icon: nil, href: nil, link_options: {}, **html_options) ⇒ ActionCardComponent



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/components/onboarding/action_card_component.rb', line 14

def initialize(
  title: nil,
  description: nil,
  icon: nil,
  href: nil,
  link_options: {},
  **html_options
)
  @title = title
  @description = description
  @icon = icon.to_s
  @href = href
  @html_options = html_options
  @link_options = link_options
end