Class: Shadcn::AlertDialogCancelComponent

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

#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_cancel_component.rb', line 8

def call
  (:button, content, button_attributes)
end