Class: Flowbite::Input::Textarea
- Defined in:
- app/components/flowbite/input/textarea.rb
Constant Summary
Constants inherited from Field
Instance Attribute Summary
Attributes inherited from Field
Class Method Summary collapse
-
.styles ⇒ Object
rubocop:disable Layout/LineLength.
Instance Method Summary collapse
-
#call ⇒ Object
Returns the HTML to use for the actual input field element.
Methods inherited from Field
Constructor Details
This class inherits a constructor from Flowbite::Input::Field
Class Method Details
.styles ⇒ Object
rubocop:disable Layout/LineLength
8 9 10 11 12 13 14 15 16 |
# File 'app/components/flowbite/input/textarea.rb', line 8 def styles { default: Flowbite::Style.new( default: ["block", "w-full", "text-gray-900", "bg-gray-50", "rounded-lg", "border", "border-gray-300", "focus:ring-blue-500", "focus:border-blue-500", "dark:bg-gray-700", "dark:border-gray-600", "dark:placeholder-gray-400", "dark:text-white", "dark:focus:ring-blue-500", "dark:focus:border-blue-500"], disabled: ["block", "w-full", "bg-gray-100", "rounded-lg", "border", "border-gray-300", "text-gray-900", "cursor-not-allowed"], error: ["block", "w-full", "bg-red-50", "border", "border-red-500", "text-red-900", "placeholder-red-700", "rounded-lg", "focus:ring-red-500", "focus:border-red-500", "dark:bg-gray-700", "dark:text-red-500", "dark:placeholder-red-500", "dark:border-red-500"] ) }.freeze end |
Instance Method Details
#call ⇒ Object
Returns the HTML to use for the actual input field element.
21 22 23 24 25 26 27 |
# File 'app/components/flowbite/input/textarea.rb', line 21 def call @form.send( input_field_type, @attribute, ** ) end |