defmodule TailwindLiveComponents.RadioGroup do use Phoenix.Component alias Phoenix.LiveView.JS alias TailwindLiveComponents.Label @doc """ Renders the vertical radio group 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 `