File: slots_v2_block_component.html.erb

package info (click to toggle)
ruby-view-component 2.74.1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 3,156 kB
  • sloc: ruby: 6,731; sh: 163; javascript: 10; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%= render SlotsV2Component.new(classes: "mt-4") do |component| %>
  <% component.title do %>
    This is my title!
  <% end %>

  <% component.subtitle do %>
    This is my subtitle!
  <% end %>

  <% component.tab do %>
    Tab A
  <% end %>

  <% component.tab do %>
    Tab B
  <% end %>

  <% component.footer(classes: "text-blue") do %>
    <p>Footer part 1</p>
    <p>Footer part 2</p>
  <% end %>
<% end %>