class Primer::Beta::CloseButton
def initialize(type: DEFAULT_TYPE, disabled: false, **system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %> -
disabled
(Boolean
) -- Whether or not the button is disabled. -
type
(Symbol
) -- <%= one_of(Primer::Beta::CloseButton::TYPE_OPTIONS) %>
def initialize(type: DEFAULT_TYPE, disabled: false, **system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :button @system_arguments[:block] = false @system_arguments[:type] = fetch_or_fallback(TYPE_OPTIONS, type, DEFAULT_TYPE) @system_arguments[:classes] = class_names( "close-button", system_arguments[:classes] ) @system_arguments[:"aria-label"] = aria("label", system_arguments) || "Close" @system_arguments[:disabled] = disabled end