Fa'ase'e ile anotusi autu Fa'ase'e ile su'ega fa'amatalaga
in English

Faailoga

Fa'amaumauga ma fa'ata'ita'iga mo pine, o la tatou vaega la'ititi ma fa'ailoga.

Faataitaiga

Fua o pine e fetaui ma le tele o le elemene matua vave e ala i le faʻaogaina o le fua faʻatatau ma emiunite. E pei o le v5, ua le toe iai ni sitaili taula'i po'o sitaili fa'afefe mo so'otaga.

Ulutala

Faataitaiga ulutalaFou

Faataitaiga ulutalaFou

Faataitaiga ulutalaFou

Faataitaiga ulutalaFou

Faataitaiga ulutalaFou
Faataitaiga ulutalaFou
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
<h6>Example heading <span class="badge bg-secondary">New</span></h6>

Fa'amau

E mafai ona fa'aoga pine e fai ma vaega o so'oga po'o fa'amau e maua ai se fata.

<button type="button" class="btn btn-primary">
  Notifications <span class="badge bg-secondary">4</span>
</button>

Manatua e fa'atatau ile fa'aogaina, fa'ailoga e ono fenumiai mo tagata fa'aoga lau faitau mata ma isi tekonolosi fesoasoani tutusa. E ui o le fa'avasegaina o pine e maua ai se fa'aaliga vaaia e uiga i lo latou fa'amoemoe, o nei tagata fa'aoga o le a na'o le tu'uina atu i totonu o le pine. Fa'alagolago i le tulaga patino, o nei pine e ono foliga mai o ni upu fa'aopoopo fa'afuase'i po'o numera i le fa'ai'uga o se fuaiupu, so'oga, po'o se faamau.

Se'i vagana ua manino le talaaga (pei o le "Fa'asilasilaga" fa'ata'ita'iga, lea e malamalama ai o le "4" o le numera o fa'amatalaga), mafaufau e aofia ai fa'amatalaga fa'aopoopo ma se vaega o lo'o natia va'aia o tusitusiga fa'aopoopo.

Tulaga

Fa'aoga mea aoga e sui ai .badgema fa'atulaga i le tulimanu o se so'oga po'o se faamau.

<button type="button" class="btn btn-primary position-relative">
  Inbox
  <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
    99+
    <span class="visually-hidden">unread messages</span>
  </span>
</button>

E mafai foi ona e suia le .badgevasega i ni nai mea aoga e aunoa ma se faitau mo se faailo sili atu.

<button type="button" class="btn btn-primary position-relative">
  Profile
  <span class="position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle">
    <span class="visually-hidden">New alerts</span>
  </span>
</button>

Lanu i tua

Fa'aoga a matou vasega fa'aoga e vave suia ai foliga o se pine. Fa'amolemole maitau pe a fa'aogaina le fa'aletonu a Bootstrap .bg-light, e te mana'omia se fa'aoga lanu o tusitusiga e pei o le fa'avasega .text-darklelei. E mafua ona o mea aoga i tua e le setiina se mea ae background-color.

Peraimeri Lua Manuia Mata'utia Lapataiga Fa'amatalaga Malamalama Pogisa
<span class="badge bg-primary">Primary</span>
<span class="badge bg-secondary">Secondary</span>
<span class="badge bg-success">Success</span>
<span class="badge bg-danger">Danger</span>
<span class="badge bg-warning text-dark">Warning</span>
<span class="badge bg-info text-dark">Info</span>
<span class="badge bg-light text-dark">Light</span>
<span class="badge bg-dark">Dark</span>
Tu'uina atu le uiga i tekinolosi fesoasoani

O le fa'aogaina o le lanu e fa'aopoopo ai le uiga e na'o se fa'aaliga va'aia, e le fa'ailoa atu i tagata fa'aoga o tekonolosi fesoasoani - e pei o le au faitau mata. Ia fa'amautinoa o fa'amatalaga o lo'o fa'ailogaina i le lanu e manino mai le anotusi lava ia (fa'ata'ita'iga o tusitusiga va'aia), pe fa'aofi mai i isi auala, e pei o tusitusiga fa'aopoopo natia i le .visually-hiddenvasega.

pine pili

Fa'aoga le .rounded-pillvasega fa'aoga e fai ai pine sili atu ona lapotopoto ma se lapopoa border-radius.

Peraimeri Lua Manuia Mata'utia Lapataiga Fa'amatalaga Malamalama Pogisa
<span class="badge rounded-pill bg-primary">Primary</span>
<span class="badge rounded-pill bg-secondary">Secondary</span>
<span class="badge rounded-pill bg-success">Success</span>
<span class="badge rounded-pill bg-danger">Danger</span>
<span class="badge rounded-pill bg-warning text-dark">Warning</span>
<span class="badge rounded-pill bg-info text-dark">Info</span>
<span class="badge rounded-pill bg-light text-dark">Light</span>
<span class="badge rounded-pill bg-dark">Dark</span>

Sass

Fuafuaga

$badge-font-size:                   .75em;
$badge-font-weight:                 $font-weight-bold;
$badge-color:                       $white;
$badge-padding-y:                   .35em;
$badge-padding-x:                   .65em;
$badge-border-radius:               $border-radius;