Sha256: 27279ccbfa66b19a67b2a2a966930e32aa8059ce113d7a413f50c81946a35652

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

module Views
  class Card < Phlex::Component
    def template(&block)
      article class: "drop-shadow p-5 rounded", &block
    end

    def title(text)
      h3 text, class: "font-bold"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlex-0.2.2 fixtures/dummy/app/views/card.rb
phlex-0.2.1 fixtures/dummy/app/views/card.rb
phlex-0.2.0 fixtures/dummy/app/views/card.rb