Wrappers

<Tag />

Requires: Block

Props: icon, label or children

Basic Usage

<Tag icon='core-auto'>
  CAAS100383547
</Tag>
CAAS100383547
show example code

Variations

Embedding Tags
Add one or more <Tag>s to (line three || four) by passing an array instead of a string.

  • ELEMENT = ‘tag’
  • ICON
  • LABEL
<Block
  lines={[
    '2015 Lexus ES',
    'Replacing 2006 Honda Accord',
     [

       {
         element:'tag',
         icon:'core-auto',
         label:'CAAS100383547',
       }

     ]
  ]}
/>
2015 Lexus ESReplacing 2006 Honda AccordCAAS100383547

Definitions

{
  tag:{
    padding:'0 16px 0 16px',
    height:'32px',
    border:{
      radius:'100px',
    },
    margin:'0 0 0 8px',
  }
}

Tokens

@mixin tag {
  // → → returns <tag> context

  @mixin theme grey;

  & block {
    > wrapper {
      @mixin flex;
      > wrapper {
        @mixin block_col_2 {
          justify-content:center;
          & > thing:nth-child(1) {
             @mixin line 1, tag;
          }
        };
      }
    }
  }
}

Videos

Examples