DaisyUIForms (daisyui_forms v0.0.2)

Form helpers using DaisyUI classes

Summary

Functions

Generate the required html for an file inpurt

Generate the required html for an input field

Create a select using the given choices

Generate the required html for an textarea field

Functions

Link to this function

file_input(form, field, value, opts \\ [])

@spec file_input(Phoenix.HTML.Form.t(), atom(), String.t(), Keyword.t()) :: [tuple()]

Generate the required html for an file inpurt

Link to this function

input(form, field, opts \\ [])

@spec input(Phoenix.HTML.Form.t(), atom(), Keyword.t()) :: [tuple()]

Generate the required html for an input field

Link to this function

select(form, field, choices, selected, prompt \\ nil)

@spec select(Phoenix.HTML.Form.t(), atom(), [tuple()], any(), String.t()) :: [tuple()]

Create a select using the given choices

Link to this function

textarea(form, field, opts \\ [])

@spec textarea(Phoenix.HTML.Form.t(), atom(), Keyword.t()) :: [tuple()]

Generate the required html for an textarea field