# typed: false # frozen_string_literal: true module Ariadne module UI module Table module Row class Component < Ariadne::BaseComponent attr_accessor :context renders_one :row_action, Ariadne::UI::Combobox::Component renders_many :cells, Ariadne::UI::Table::Cell::Component accepts_html_attributes do |html_attrs| html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(:row), html_attrs[:class]].join(" ")) end style :row do base do [ "ariadne-border-b", "ariadne-transition-colors", "hover:ariadne-bg-muted/50", "data-[state=selected]:ariadne-bg-muted", ] end end end end end end end