Class: Railsboot::TeamMemberComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/railsboot/team_member_component.rb

Overview

ViewComponent: renders the team member block.

Instance Method Summary collapse

Constructor Details

#initialize(**html_attributes) ⇒ TeamMemberComponent

Returns a new instance of TeamMemberComponent.

Parameters:

  • html_attributes (Hash)

    additional HTML attributes applied to the rendered element

Options Hash (**html_attributes):

  • :class (String)

    CSS classes applied to the rendered tag



30
31
32
# File 'app/components/railsboot/team_member_component.rb', line 30

def initialize(**html_attributes)
  @html_attributes = html_attributes
end