akkounts/app/components/form_elements/fieldset_component.rb
Râu Cao 93740f17ef
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
Allow editing and resetting of all admin setting strings
2023-06-22 13:48:29 +02:00

17 lines
453 B
Ruby

# frozen_string_literal: true
module FormElements
class FieldsetComponent < ViewComponent::Base
def initialize(tag: "li", positioning: :vertical,
title:, description: nil,
field_name: nil, resettable: false)
@tag = tag
@positioning = positioning
@title = title
@descripton = description
@field_name = field_name
@resettable = resettable
end
end
end