openaustralia/planningalerts

View on GitHub
app/components/tailwind/centre_block_with_image.rb

Summary

Maintainability
A
0 mins
Test Coverage
# typed: strict
# frozen_string_literal: true

module Tailwind
  class CentreBlockWithImage < ViewComponent::Base
    extend T::Sig

    renders_one :heading
    renders_one :image

    sig { params(extra_classes: String).void }
    def initialize(extra_classes: "")
      super

      @extra_classes = extra_classes
    end
  end
end