Class: Shadcn::AlertDialogComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::AlertDialogComponent
- Defined in:
- app/components/shadcn/alert_dialog_component.rb
Overview
Alert Dialog component for important confirmation dialogs Matches shadcn/ui AlertDialog component Uses Stimulus for interactivity (reuses dialog controller)
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
-
#initialize(open: false, **options) ⇒ AlertDialogComponent
constructor
A new instance of AlertDialogComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(open: false, **options) ⇒ AlertDialogComponent
Returns a new instance of AlertDialogComponent.
32 33 34 35 |
# File 'app/components/shadcn/alert_dialog_component.rb', line 32 def initialize(open: false, **) super(**) @open = open end |