Add horizontal layout option for fieldset component

This commit is contained in:
Râu Cao
2023-04-03 13:55:39 +02:00
parent 7f77ad5528
commit 6848bd739c
2 changed files with 21 additions and 4 deletions

View File

@@ -2,10 +2,11 @@
module FormElements
class FieldsetComponent < ViewComponent::Base
def initialize(tag: "li", title:, description: nil)
@tag = tag
@title = title
@descripton = description
def initialize(tag: "li", positioning: :vertical, title:, description: nil)
@tag = tag
@positioning = positioning
@title = title
@descripton = description
end
end
end