The Sheet component introduces:
The <%= code("render_sheet") %> method accepts a <%= code("direction") %> optional keyword for the direction for the sheet, left (default) or right. The <%= code("render_sheet") %> method also accepts a block where you call the <%= code("sheet_trigger") %> and pass it a block that will be the trigger for the sheet and a <%= code("sheet_content") %> method that accepts a block for the content of a sheet.
If you have to define a sheet whose trigger cannot be within the same elements of the sheet content, you can interact with the sheet controller directly.
<% content_for :examples, flush: true do %> <% end %> <% content_for :code, flush: true do %>