Class: Shadcn::AlertDialogActionComponent

Inherits:
BaseComponent
  • Object
show all
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

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



8
9
10
# File 'app/components/shadcn/alert_dialog_action_component.rb', line 8

def call
  (:button, content, button_attributes)
end