Class: Shadcn::AlertDialogCancelComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::AlertDialogCancelComponent
- Defined in:
- app/components/shadcn/alert_dialog_cancel_component.rb
Overview
Alert Dialog Cancel button component
Constant Summary collapse
- BASE_CLASSES =
"mt-2 sm:mt-0 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 border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground 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_cancel_component.rb', line 8 def call content_tag(:button, content, ) end |