Method: Lookbook::ComponentHelper#render_component
- Defined in:
- app/helpers/lookbook/component_helper.rb
#render_component(name, **attrs, &block) ⇒ Object Also known as: component
3 4 5 6 |
# File 'app/helpers/lookbook/component_helper.rb', line 3 def render_component(name, **attrs, &block) attrs[:classes] = class_names(attrs[:class]) render "lookbook/components/#{name.underscore}", **attrs.except(:class), &block end |