@include prefix(tag) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: all ease 300ms;

  & + & {
    margin-left: 8px;
  }

  @include sizeMixin(tag, (font-size, border-radius)) {
    height: plv(tag-size-#{$name}-height);
    padding: 0 4px;
  }

  & > .#{componentName(loading)}, & > .#{componentName(icon)}, & > .tag-close-wrapper {
    &:last-child {
      cursor: pointer;
      margin-left: 4px;
    }

    &:not(:last-child) {
      margin-right: 4px !important;
    }
  }

  .tag-close-wrapper {
    vertical-align: middle;
    height: 1em;
    width: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
