<div> <%= pb_rails("badge", props: { text: "+1", variant: "primary", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "primary" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "primary", }) %> </div> <div> <%= pb_rails("badge", props: { text: "+1", variant: "success", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "success" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "success" }) %> </div> <div> <%= pb_rails("badge", props: { text: "+1", variant: "warning", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "warning" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "warning" }) %> </div> <div> <%= pb_rails("badge", props: { text: "+1", variant: "error", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "error" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "error" }) %> </div> <div> <%= pb_rails("badge", props: { text: "+1", variant: "info", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "info" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "info" }) %> </div> <div> <%= pb_rails("badge", props: { text: "+1", rounded: true }) %> <%= pb_rails("badge", props: { text: "+4", variant: "neutral" }) %> <%= pb_rails("badge", props: { text: "+1000", variant: "neutral" }) %> </div>
<%= pb_rails("hashtag", props: {text: "470297", url: "https://google.com", type: "project"}) %> <br/><br/> <%= pb_rails("hashtag", props: {text: "123456", url: "https://google.com", type: "home"}) %> <br/><br/> <%= pb_rails("hashtag", props: {text: "345678", url: "https://google.com", type: "appointment"}) %> <br/><br/> <%= pb_rails("hashtag", props: {text: "123456", url: "https://google.com", type: "default"}) %>
Use the newWindow/new_window prop to control whether the link opens on the same page or a new tab (same page is the default behavior)
<%= pb_rails("pill", props: { text: "success" , variant: "success" }) %> <%= pb_rails("pill", props: { text: "error" , variant: "error" }) %> <%= pb_rails("pill", props: { text: "warning" , variant: "warning" }) %> <%= pb_rails("pill", props: { text: "info" , variant: "info" }) %> <%= pb_rails("pill", props: { text: "neutral" , variant: "neutral" }) %> <%= pb_rails("pill", props: { text: "primary" , variant: "primary" }) %>