Sha256: 040905b86d3a9c0696c92388ebc32fce314a25daf3262985b48112bede649c0c

Contents?: true

Size: 593 Bytes

Versions: 141

Compression:

Stored size: 593 Bytes

Contents

<%= render(Primer::Beta::Subhead.new) do |component| %>
  <% component.with_heading(id: "scLabel-vert") { "File view" } %>
  <% component.with_description(id: "scCaption-vert") { "Change the way the file is viewed" } %>
  <% component.with_actions do %>
    <%= render(Primer::Alpha::SegmentedControl.new("aria-labelledby": "scLabel-vert", "aria-describedby": "scCaption-vert")) do |component| %>
      <% component.with_item(label: "Preview", selected: true) %>
      <% component.with_item(label: "Raw") %>
      <% component.with_item(label: "Blame") %>
    <% end %>
  <% end %>
<% end %>

Version data entries

141 entries across 141 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.52.2 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.36.4 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.52.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.52.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.36.3 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.51.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.36.2 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.50.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.50.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.36.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.36.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.49.2 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.35.2 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.49.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.49.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.35.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
primer_view_components-0.35.0 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.48.2 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
openproject-primer_view_components-0.48.1 previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb