defmodule LabelmakerWeb.RadioComponent do use Phoenix.Component # props: class, is_dm, settings, options attr :class, :string, default: "" attr :selected, :string, required: true attr :options, :list, required: true # class="mt-1 block w-full rounded border border-gray-300 px-3 py-2 bg-secondary-light text-fg-light dark:bg-secondary-dark dark:text-fg-dark dark:border-gray-600 focus:ring-primary" def radio_component(assigns) do ~H"""
<%= for {option, index} <- Enum.with_index(@options) do %> <% end %>
""" end end