From 26660442962251aab713926748c0c0194905d12f Mon Sep 17 00:00:00 2001 From: Joel Warrington Date: Sun, 20 Oct 2024 12:53:36 -0600 Subject: [PATCH] Update styling of email field --- lib/atomic_view/components/email_field_component.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/atomic_view/components/email_field_component.rb b/lib/atomic_view/components/email_field_component.rb index 52580ae..c28da7e 100644 --- a/lib/atomic_view/components/email_field_component.rb +++ b/lib/atomic_view/components/email_field_component.rb @@ -1,6 +1,17 @@ module AtomicView module Components class EmailFieldComponent < ViewComponent::Form::EmailFieldComponent + def call + render TextFieldComponent.new( + @form, + @object_name, + @object_method, + @options.merge( + type: "email", + left_section: icon("at-symbol", variant: :mini, options: {class: "size-5 text-gray-500"}) + ) + ) + end end end end