Sha256: eaf0a3bef98d3f3d3ac6422fdb42f4fbfabdc498f1ded8eab2b0cd9bbf16c842

Contents?: true

Size: 1.84 KB

Versions: 125

Compression:

Stored size: 1.84 KB

Contents

<% showcase.sample "Basic" do %>
  <%= render "shared/box" do |box| %>
    <% box.title "Title" %>
    <% box.description "Description" %>
    <% box.body "Lorem ipsum dolor sit amet…" %>
  <% end %>
<% end %>

<% showcase.sample "With Divider" do %>
  <%= render "shared/box", divider: true do |box| %>
    <% box.title "Title" %>
    <% box.description "Description" %>
    <% box.body "Lorem ipsum dolor sit amet…" %>
  <% end %>
<% end %>

<% showcase.sample "With top border" do %>
  <%= render "shared/box", title: "Title", border_top: true %>
<% end %>

<% showcase.sample "Without background" do %>
  <%= render "shared/box", title: "Title", no_background: true %>
<% end %>

<% showcase.options.context :nice_partials do |o| %>
  <% o.optional.content_block :title %>
  <% o.optional :title_size, "A CSS string to control title size" %>
  <% o.optional :title_padding, "A CSS string to control title padding" %>
  <% o.optional.content_block :description, "Content text to render beneath the title" %>
  <% o.optional.content_block :table %>
  <% o.optional.content_block :body, "The main content body of the element" %>
  <% o.optional.content_block :footer, "Add a footer at the bottom within the container, with a top border and some padding" %>
  <% o.optional.content_block :raw_footer, "Add a footer without a top border and padding" %>
  <% o.optional.content_block :actions, "Content designated to contain actions, like buttons, beneath the body" %>
  <% o.optional :pagy, "Pass in a pagy to render a pagy_nav below the body", type: "Pagy object" %>
  <% o.optional :divider, "Whether to add dividers between sections", default: false %>
  <% o.optional :border_top, "Whether to add a top border to the container element", default: false %>
  <% o.optional :no_background, "Pass true to remove the surrounding background on the container", default: false %>
<% end %>

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.15.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.14.2 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.14.1 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.14.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.13.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.12.3 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.12.2 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.12.1 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.12.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.11.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.10.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.9.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.5 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.4 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.3 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.2 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.1 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.8.0 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.7.23 app/views/showcase/previews/partials/_box.html.erb
bullet_train-themes-light-1.7.22 app/views/showcase/previews/partials/_box.html.erb