MishkaChelekom.Components.Combobox (AshFormBuilder v0.4.0)

View Source

Stub module for MishkaChelekom Combobox component.

Generate the real component in your host application using:

mix mishka.ui.gen.component combobox

These stubs render plain (but functional) HTML so forms still work end-to-end when the upstream component library is not installed.

Summary

Functions

combobox(assigns)

Attributes

  • field (Phoenix.HTML.FormField) - Defaults to nil.
  • name (:string) - Defaults to nil.
  • label (:string) - Defaults to nil.
  • value (:any) - Defaults to nil.
  • options (:list) - Defaults to [].
  • required (:boolean) - Defaults to false.
  • errors (:list) - Defaults to [].
  • multiple (:boolean) - Defaults to false.
  • color (:string) - Defaults to nil.
  • variant (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • trigger
  • inner_block

combobox_input(assigns)

Attributes

  • field (Phoenix.HTML.FormField) - Defaults to nil.
  • placeholder (:string) - Defaults to nil.
  • Global attributes are accepted.

combobox_option(assigns)

Attributes

  • value (:any) - Defaults to nil.
  • selected (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

combobox_options(assigns)

Slots

  • inner_block
  • create_action