Class: UI::Skeleton
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::Skeleton
- Defined in:
- app/components/ui/skeleton.rb
Overview
Skeleton - Phlex implementation
A simple loading placeholder component with pulsing animation. This is a CSS-only component with no JavaScript behavior.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ Skeleton
constructor
A new instance of Skeleton.
- #view_template ⇒ Object
Constructor Details
#initialize(classes: "", **attributes) ⇒ Skeleton
Returns a new instance of Skeleton.
22 23 24 25 |
# File 'app/components/ui/skeleton.rb', line 22 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template ⇒ Object
27 28 29 |
# File 'app/components/ui/skeleton.rb', line 27 def view_template div(**merged_attributes) end |