Class: Panda::Core::Admin::FlashMessageComponent
- Defined in:
- app/components/panda/core/admin/flash_message_component.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#after_template, #attrs, #before_template, #default_attrs, #merge_attrs, #tailwind_merge_attrs
Instance Method Details
#view_template ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/components/panda/core/admin/flash_message_component.rb', line 12 def view_template # Global notification container (fixed position) div( aria: {live: "assertive"}, class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6 z-50" ) do div(class: "flex w-full flex-col items-center space-y-4 sm:items-end") do # Notification panel with Tailwind Plus styling div(**notification_attrs) do div(class: "p-4") do div(class: "flex items-start") do render_icon render_content end end end end end end |