Badges

View code
New in v3.6.0! The badges feature from Blaze CSS is in beta!

Use


RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks!

RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks!

RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks!

RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks! RG2 Rocks!

  • You can set values for the badges inline, or via the opts (this is true for most RG2 components)
  • On Click is emitted

HTML


      <rg-badge style="default|brand|info|success|warning|error" rounded=true ghost=true>RG2 Rocks!</rg-badge>
  

JavaScript


var tags = riot.mount("rg-badge") ;