2022-08-17 21:41:16 +02:00
|
|
|
class Dsfr::ButtonComponent < ApplicationComponent
|
|
|
|
private
|
|
|
|
|
2022-08-18 10:30:37 +02:00
|
|
|
def initialize(label:, form: nil, url: nil, class_names: [])
|
2022-08-17 21:41:16 +02:00
|
|
|
@form = form
|
|
|
|
@label = label
|
|
|
|
@url = url
|
|
|
|
@class_names = Array(class_names)
|
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :form, :url, :label, :class_names
|
|
|
|
end
|