Sha256: 39e821db4bc806565c83ac009f8101c8c8d9b29972983d4ea7780ac47597e128
Contents?: true
Size: 845 Bytes
Versions: 7
Compression:
Stored size: 845 Bytes
Contents
# 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
Version data entries
7 entries across 7 versions & 1 rubygems