Web Design Guide 2024-10-28 08:44:01 | 2.0.0
<span class=" badge ">5</span>
<span class="{{mixes}} badge {{modifiers}}">{{text}}{{#icon}}<i class="icon {{.}}"></i>{{/icon}}</span>
{
  "text": "5",
  "icon": null
}
  • Content:
    .badge {
      display: inline-block;
      margin-left: 0.5rem;
      padding: 0.5rem 1rem;
      background-color: $primary;
      color: $white;
    
      .icon:not(:first-child) {
        padding-left: 1rem;
      }
    
      &.-secondary {
        background-color: $secondary;
      }
    
      &.-white,
      .-active & {
        background-color: $white;
        color: $primary;
      }
    }
    
  • URL: /components/raw/atoms-badge/_badge.scss
  • Filesystem Path: src/components/02-ui-components/01-atoms/10-badge/_badge.scss
  • Size: 326 Bytes

There are no notes for this item.