Sha256: 136def97d7cb002612ef270eb4f98f1db9b7546a768cfbc9ddd723c854c8472c

Contents?: true

Size: 1019 Bytes

Versions: 39

Compression:

Stored size: 1019 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module UI
    module Table
      class Component < Ariadne::BaseComponent
        renders_one :caption
        renders_one :header, Ariadne::UI::Table::Header::Component
        renders_many :rows, Ariadne::UI::Table::Row::Component
        renders_one :footer, Ariadne::UI::Table::Footer::Component

        style :table do
          base do
            [
              "ariadne-w-full",
              "ariadne-caption-bottom",
              "ariadne-text-sm",
            ]
          end
        end

        style :body do
          base do
            [
              "ariadne-divide-y",
              "ariadne-divide-zinc-100",
              "dark:ariadne-divide-zinc-800",
            ]
          end
        end

        style :caption do
          base do
            [
              "ariadne-mt-4",
              "ariadne-text-sm",
              "ariadne-text-muted-foreground",
            ]
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.83.2 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.83.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.83 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.82 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.81 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.80.3 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.79.2 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.79.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.79 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.78 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.77 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.76.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.76 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.75 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.74.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.74 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.73 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.72 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.71 app/components/ariadne/ui/table/component.rb