TailwindLiveComponents.HorizontalRadioGroup (tailwind_live_components v0.1.0) View Source

Link to this section Summary

Functions

Renders the listbox element

Link to this section Functions

Renders the listbox element

<.radio_group form={f} field={:fruit} label="Horizontal Radio Group" options={[
    %{value: "apple", display: "Apple", detail: "yummy apple"},
    %{value: "banana", display: "Banana", detail: "yummy banana"},
    %{value: "cherry", display: "Cherry", detail: "yummy cherry"}
  ]} />

## Options

  * `form` - The form identifier
  * `field` - The field name
  * `label` - The text for the generated `<label>` element
  * `prompt` - An option to include at the top of the options with the given prompt text
  * `options` - The options in the list box
  * `error` - Optional error message
  * `theme` - Optional theme to use for Tailwind classes