# typed: false # frozen_string_literal: true module Ariadne module Form module ToggleGroup class Component < Ariadne::BaseComponent option :type renders_many :options, lambda { |**options| Ariadne::Form::ToggleGroup::Option::Component.new(type: @type, **options) } accepts_html_attributes do |html_attrs| html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style, html_attrs[:class]].join(" ")) end style do base do [ "ariadne-inline-flex", "ariadne-gap-1", "ariadne-p-0.5", "ariadne-rounded-lg", "ariadne-text-md", "font-medium", "ariadne-bg-zinc-300/10", "dark:ariadne-bg-zinc-700/20", ] end end end end end end