Class: Protos::Drawer::Side

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/drawer/side.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/protos/drawer/side.rb', line 11

def view_template
  aside(**attrs) do
    label(
      for: @input_id,
      aria_label: "close sidebar",
      class: css[:toggle]
    )
    yield if block_given?
  end
end