LiveFilter.Components.RadioGroup (LiveFilter v0.1.8)

Copy Markdown View Source

Radio group dropdown component supporting pills and radio button styles.

Renders a DaisyUI dropdown with either pill buttons (join component) or traditional radio buttons with keyboard navigation and proper accessibility.

Required Assigns

  • filter - The Filter struct containing value and config
  • myself - The parent LiveComponent's @myself for event targeting

Events (handled by parent)

  • change_radio_group - %{"id" => filter_id, "value" => selected_value}

Example

<LiveFilter.Components.RadioGroup.render
  filter={@filter}
  myself={@myself}
/>

Summary

Functions

Renders a radio group dropdown component.

Functions

render(assigns)

Renders a radio group dropdown component.

Attributes

  • filter (:map) (required) - The Filter struct.
  • myself (:any) (required) - The parent LiveComponent's @myself.