Class: Shadcn::AlertDialog::Cancel::Component

Inherits:
Action::Component show all
Defined in:
app/components/shadcn/alert_dialog/cancel/component.rb

Overview

AlertDialogCancel — same as Action but outlined by default.

Constant Summary

Constants inherited from Shadcn::ApplicationViewComponent

Shadcn::ApplicationViewComponent::CONTENTS_STYLE, Shadcn::ApplicationViewComponent::VOID_TAGS

Instance Attribute Summary

Attributes inherited from Action::Component

#size, #variant

Attributes inherited from Shadcn::ApplicationViewComponent

#attributes

Instance Method Summary collapse

Methods inherited from Action::Component

#css_classes, #element_attributes

Methods inherited from Shadcn::ApplicationViewComponent

#call, #css_classes, default_tag, #element_attributes, #merged_style, #render_element, #shadcn_t, slot_name, #style_variants, #tag_name

Constructor Details

#initialize(variant: :outline, **attributes) ⇒ Component

Returns a new instance of Component.



10
11
12
# File 'app/components/shadcn/alert_dialog/cancel/component.rb', line 10

def initialize(variant: :outline, **attributes)
  super(variant:, **attributes)
end