PrenixComponents.Input (prenix_components v0.1.1)

Summary

Functions

Attributes

  • name (:string) (required)
  • id (:string)
  • value (:any) - Defaults to nil.
  • label_text (:string) - Defaults to nil.
  • helper_text (:string) - Defaults to nil.
  • invalid (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • placeholder (:string) - Defaults to nil.
  • size (:string) - Defaults to "md".
  • label_placement (:string) - Defaults to "inside".
  • type (:string) - Defaults to "text".
  • class (:string) - Defaults to nil.
  • wrapper_class (:string) - Defaults to nil.
  • label_class (:string) - Defaults to nil.
  • input_wrapper_class (:string) - Defaults to nil.
  • input_class (:string) - Defaults to nil.
  • helper_class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["accept", "autocomplete", "capture", "cols", "disabled", "form", "list", "max", "maxlength", "min", "minlength", "multiple", "pattern", "placeholder", "readonly", "required", "rows", "size", "step"].

Slots

  • label
  • helper
  • start_content
  • end_content

Functions

Attributes

  • name (:string) (required)
  • id (:string)
  • value (:any) - Defaults to nil.
  • label_text (:string) - Defaults to nil.
  • helper_text (:string) - Defaults to nil.
  • invalid (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • placeholder (:string) - Defaults to nil.
  • size (:string) - Defaults to "md".
  • label_placement (:string) - Defaults to "inside".
  • type (:string) - Defaults to "text".
  • class (:string) - Defaults to nil.
  • wrapper_class (:string) - Defaults to nil.
  • label_class (:string) - Defaults to nil.
  • input_wrapper_class (:string) - Defaults to nil.
  • input_class (:string) - Defaults to nil.
  • helper_class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["accept", "autocomplete", "capture", "cols", "disabled", "form", "list", "max", "maxlength", "min", "minlength", "multiple", "pattern", "placeholder", "readonly", "required", "rows", "size", "step"].

Slots

  • label
  • helper
  • start_content
  • end_content