Class: KozenetUi::HeaderComponent::UserMenuComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- KozenetUi::HeaderComponent::UserMenuComponent
- Defined in:
- app/components/kozenet_ui/header_component/user_menu_component.rb
Overview
UserMenu section for the HeaderComponent Renders a user menu dropdown or avatar in the header
Constant Summary
Constants inherited from BaseComponent
Instance Attribute Summary
Attributes inherited from BaseComponent
#html_options, #size, #variant
Instance Method Summary collapse
-
#initialize(user_name: nil, avatar_url: nil, **html_options) ⇒ UserMenuComponent
constructor
A new instance of UserMenuComponent.
Constructor Details
#initialize(user_name: nil, avatar_url: nil, **html_options) ⇒ UserMenuComponent
Returns a new instance of UserMenuComponent.
14 15 16 17 18 |
# File 'app/components/kozenet_ui/header_component/user_menu_component.rb', line 14 def initialize(user_name: nil, avatar_url: nil, **) super(**) @user_name = user_name @avatar_url = avatar_url end |