2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-09-07 15:46:54 +02:00
|
|
|
class Dsfr::CardVerticalComponent < ApplicationComponent
|
2022-09-07 13:14:56 +02:00
|
|
|
renders_many :footer_buttons
|
2022-09-06 19:13:03 +02:00
|
|
|
|
2022-11-02 09:27:54 +01:00
|
|
|
attr_reader :title, :desc, :tags, :error
|
2022-09-06 19:13:03 +02:00
|
|
|
|
2022-11-02 09:27:54 +01:00
|
|
|
def initialize(title: nil, desc: nil, tags: nil, error: nil)
|
2022-09-06 19:13:03 +02:00
|
|
|
@title = title
|
|
|
|
@desc = desc
|
2022-11-02 09:27:54 +01:00
|
|
|
@tags = tags
|
|
|
|
@error = error
|
2022-09-06 19:13:03 +02:00
|
|
|
end
|
|
|
|
end
|