Flowbite::Input::File
API reference
Flowbite::Input
Constructor
def initialize(attribute:, form:, class: nil, disabled: false, options: {}, size: :default)
Parameters
attribute
|
Symbol | The attribute on the form's object this input field is for. |
|---|---|---|
form
|
ActionView::Helpers::FormBuilder | The form builder this input field is part of. |
class
|
String, Array<String> | Additional CSS classes to apply to the input field. |
disabled
|
Boolean | Whether the input field should be disabled. |
options
|
Hash | Additional HTML attributes to pass to the input field. For example, you can use this to set placeholder text by passing +options: {placeholder: "Enter your name"}+ |
size
|
Symbol | The size of the input field. Can be one of +:sm+, +:default+, or +:lg+. |
See also
Ruby API documentation forclass Flowbite::Input::File