Class: PhlexKit::AvatarGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::AvatarGroup
- Defined in:
- app/components/phlex_kit/avatar/avatar_group.rb
Overview
Overlapping row of Avatars (shadcn's grouped avatars). See avatar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ AvatarGroup
constructor
A new instance of AvatarGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ AvatarGroup
Returns a new instance of AvatarGroup.
4 |
# File 'app/components/phlex_kit/avatar/avatar_group.rb', line 4 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
5 |
# File 'app/components/phlex_kit/avatar/avatar_group.rb', line 5 def view_template(&) = div(**mix({ class: "pk-avatar-group" }, @attrs), &) |