Class: Shadcn::AlertDialog::Cancel::Component
- Inherits:
-
Action::Component
- Object
- ViewComponent::Base
- Shadcn::ApplicationViewComponent
- Action::Component
- Shadcn::AlertDialog::Cancel::Component
- 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
Attributes inherited from Shadcn::ApplicationViewComponent
Instance Method Summary collapse
-
#initialize(variant: :outline, **attributes) ⇒ Component
constructor
A new instance of Component.
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 |