Sha256: d0fe215eb60e4875b06d0b3bf3f070546eb46789af3d94c134c58429df49864d

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

<%
  names = [
    { label: 'Alexander Nathaniel Montgomery', value: 'Alexander Nathaniel Montgomery' },
    { label: 'Isabella Anastasia Wellington', value: 'Isabella Anastasia Wellington' },
    { label: 'Christopher Maximilian Harrington', value: 'Christopher Maximilian Harrington' },
    { label: 'Elizabeth Seraphina Kensington', value: 'Elizabeth Seraphina Kensington' },
    { label: 'Theodore Jonathan Abernathy', value: 'Theodore Jonathan Abernathy' },
  ]
%>

<%= pb_rails("typeahead", props: {
    html_options: { style: { maxWidth: "240px" }},
    id: "typeahead-form-pill",
    is_multi: true,
    options: names,
    label: "Truncation Within Typeahead",
    pills: true,
    truncate: 1,
}) %>

<%= pb_rails("caption", props: { text: "Form Pill Truncation" }) %>
<%= pb_rails("card", props: { max_width: "xs" })  do %>
  <%= pb_rails("form_pill", props: {
      name: "Princess Amelia Mignonette Grimaldi Thermopolis Renaldo",
      avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
      tabindex: 0,
      truncate: 1,
  }) %>
  <%= pb_rails("form_pill", props: {
      icon: "badge-check",
      text: "icon and a very long tag to show truncation",
      tabindex: 0,
      truncate: 1,
  }) %>
  <%= pb_rails("form_pill", props: {
      text: "form pill with a very long tag to show truncation",
      tabindex: 0,
      truncate: 1,
  }) %>
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
playbook_ui_docs-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4304 app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4304 app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296 app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296 app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb