Class: Shadcn::AlertDialogActionComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::AlertDialogActionComponent
- Defined in:
- app/components/shadcn/alert_dialog_action_component.rb
Overview
Alert Dialog Action button component
Constant Summary collapse
- BASE_CLASSES =
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground shadow hover:bg-primary/90 h-9 px-4 py-2"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
This class inherits a constructor from Shadcn::BaseComponent
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'app/components/shadcn/alert_dialog_action_component.rb', line 8 def call content_tag(:button, content, ) end |