Class: Uchi::Flowbite::Input::File
- Inherits:
-
Input
- Object
- Input
- Uchi::Flowbite::Input::File
- Defined in:
- app/components/uchi/flowbite/input/file.rb
Constant Summary collapse
- SIZES =
{ sm: ["text-sm"], default: ["text-sm"], lg: ["text-base"] }.freeze
Class Method Summary collapse
-
.styles ⇒ Object
rubocop:disable Layout/LineLength.
Instance Method Summary collapse
-
#input_field_type ⇒ Object
Returns the name of the method used to generate HTML for the input field.
Class Method Details
.styles ⇒ Object
rubocop:disable Layout/LineLength
18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/components/uchi/flowbite/input/file.rb', line 18 def self.styles Uchi::Flowbite::Styles.from_hash( { default: { default: ["block", "w-full", "text-heading", "border", "border-default-medium", "rounded-base", "cursor-pointer", "bg-neutral-secondary-medium", "focus:outline-none"], disabled: ["block", "w-full", "text-fg-disabled", "border", "border-default-medium", "rounded-base", "cursor-not-allowed", "bg-neutral-secondary-medium"], error: ["block", "w-full", "text-fg-danger-strong", "border", "border-danger-subtle", "rounded-base", "cursor-pointer", "bg-danger-soft", "focus:outline-none"] } }.freeze ) end |
Instance Method Details
#input_field_type ⇒ Object
Returns the name of the method used to generate HTML for the input field
13 14 15 |
# File 'app/components/uchi/flowbite/input/file.rb', line 13 def input_field_type :file_field end |