LabelGroup

Use LabelGroup to add commonly used margins and other layout constraints to groups of Labels

A LabelGroup is a component to handle the layout of a collection of labels or tokens.

React examples

Default

  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
  • Eleven
  • Twelve
  • Thirteen
  • Fourteen
  • Fifteen
  • Sixteen

Truncated

Trunacte after 5 labels

  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
  • Eleven
  • Twelve
  • Thirteen
  • Fourteen
  • Fifteen
  • Sixteen

Trunacte labels based on container size

  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
  • Eleven
  • Twelve
  • Thirteen
  • Fourteen
  • Fifteen
  • Sixteen

More code examples

See the LabelGroup Storybook stories

Props

Loading data for label_group...