Skip to content

Commit 0a37317

Browse files
committed
Move text to be near other input shortcuts
1 parent cc6c377 commit 0a37317

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/superform/rails/form.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ def input(**attributes)
5454
Components::Input.new(self, attributes:)
5555
end
5656

57-
def text(*, **, &)
58-
input(*, **, type: :text, &)
59-
end
60-
6157
def checkbox(**attributes)
6258
Components::Checkbox.new(self, attributes:)
6359
end
@@ -81,6 +77,10 @@ def select(*collection, **attributes, &)
8177
# field(:birthday).date
8278
# field(:secret).hidden(value: "token123")
8379
# field(:gender).radio("male", id: "user_gender_male")
80+
def text(*, **, &)
81+
input(*, **, type: :text, &)
82+
end
83+
8484
def hidden(*, **, &)
8585
input(*, **, type: :hidden, &)
8686
end

0 commit comments

Comments
 (0)