<.simple_form :let={f} for={%{}} as={:story} class="w-full"> <.form_input field={f[:field]} id="form-basic-inputs-text" label="Text input" type="text"/> <.form_input field={f[:field]} id="form-basic-inputs-textarea" label="Textarea input" type="textarea"/> <.form_input field={f[:field]} id="form-basic-inputs-number" label="Number input" type="number"/> <.form_input field={f[:field]} id="form-basic-inputs-date" label="Date input" type="date"/> <.form_input field={f[:field]} id="form-basic-inputs-color" label="Color input" type="color"/> <.form_input field={f[:field]} id="form-basic-inputs-range" label="Range input" type="range"/> <.form_input field={f[:field]} id="form-basic-inputs-checkbox" label="Checkbox input" type="checkbox"/> </.simple_form>
<.simple_form :let={f} for={%{}} as={:story} class="w-full"> <.form_input field={f[:field]} id="form-single-select" label="Select input" options={["Option 1", "Option 2", "Option 3"]} type="select"/> </.simple_form>