PrenixComponents.Checkbox (prenix_components v0.1.3)

Summary

Functions

Attributes

  • name (:string) (required)
  • size (:string) - Defaults to "md".
  • color (:string) - Defaults to "primary".
  • value (:any) (required)
  • id (:string)
  • checked (:boolean) - Defaults to false.
  • label_text (:string) - Defaults to nil.
  • helper_text (:string) - Defaults to nil.
  • invalid (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • field (Phoenix.HTML.FormField)
  • errors (:list) - Defaults to [].
  • class (:string) - Defaults to nil.
  • label_class (:string) - Defaults to nil.
  • helper_class (:string) - Defaults to nil.
  • checkbox_class (:string) - Defaults to nil.

Slots

  • label
  • helper

Functions

Link to this function

checkbox(assigns)

Attributes

  • name (:string) (required)
  • size (:string) - Defaults to "md".
  • color (:string) - Defaults to "primary".
  • value (:any) (required)
  • id (:string)
  • checked (:boolean) - Defaults to false.
  • label_text (:string) - Defaults to nil.
  • helper_text (:string) - Defaults to nil.
  • invalid (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • field (Phoenix.HTML.FormField)
  • errors (:list) - Defaults to [].
  • class (:string) - Defaults to nil.
  • label_class (:string) - Defaults to nil.
  • helper_class (:string) - Defaults to nil.
  • checkbox_class (:string) - Defaults to nil.

Slots

  • label
  • helper