Flowbite::InputField::Text

API reference

Inherits from Flowbite::InputField

Constructor

def initialize(attribute:, form:, class: nil, disabled: false, hint: nil, input: {}, label: {}, options: {}, size: :default)

Parameters

attribute Symbol The name of the attribute to render in this input field.
form ActionView::Helpers::FormBuilder The form builder object that will be used to generate the input field.
class String, Array<String> Additional CSS classes to apply to the input field container, i.e. the outermost element. To add classes to individual components of the InputField, use the +input+, +label+ and +hint+ arguments.
disabled Boolean Whether the input field should be disabled.
hint Hash A hint to display below the input field, providing additional context or instructions for the user. If provided, this Hash is passed to the {Flowbite::Input::Hint} constructor.
input Hash A hash with options for the input component. These are passed to the input component's constructor, see the documentation for whatever input component is being used. See {Flowbite::Input}.
label Hash A hash with options for the label element. If provided, this Hash is passed to the {Flowbite::Input::Label} constructor.
options Hash Additional HTML attributes to pass to the input field container element.
size Symbol The size of the input field. Can be one of +:sm+, +:default+, or +:lg+.

See also

Ruby API documentation for class Flowbite::InputField::Text