Sha256: 54dffcf152c8cb82e6f04b1d7c2d681c024c6759e100328487992b05fd6f3a1a
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Yattho module Alpha class Dialog # A `Dialog::Footer` is a compositional component, used to render the # Footer of a dialog. See <%= link_to_component(Yattho::Alpha::Dialog) %>. class Footer < Yattho::Component status :alpha audited_at "2022-10-10" # @param show_divider [Boolean] Show a divider between the footer and body. # @param system_arguments [Hash] <%= link_to_system_arguments_docs %> def initialize( show_divider: false, **system_arguments ) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( "Overlay-footer", "Overlay-footer--alignEnd", { 'Overlay-footer--divided': show_divider }, system_arguments[:classes] ) end def call render(Yattho::BaseComponent.new(**@system_arguments)) { content } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | app/components/yattho/alpha/dialog/footer.rb |
yattho_view_components-0.0.1 | app/components/yattho/alpha/dialog/footer.rb |