% id_prefix ||= "radio-#{SecureRandom.hex(4)}" items ||= [] %> <% items.each_with_index do |item, index| %> <% if item === :or %> <%= t('components.radio.or') %> <% else %> <% item_next = items[index + 1] unless index === items.size - 1 label_id = item[:id] ? item[:id] : "#{id_prefix}-#{index}" label_hint_id = "label-hint-#{SecureRandom.hex(4)}" if item[:hint_text].present? %>