Sha256: c2c95a411b3c12e78a1ce489cc6a50c4da506ff29452cc89b5bc2b8094c1c3dc
Contents?: true
Size: 486 Bytes
Versions: 13
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true module Kpop module Modal class TitleComponent < ViewComponent::Base include Katalyst::HtmlAttributes def initialize(title: nil, captive: false, **) super @title = title @captive = captive end def title content? ? content : @title end def captive? @captive end def inspect "#<#{self.class.name} title: #{title.inspect}>" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems