Skip to content

CSS: spinner

.instui-spinner — Yon bag chajman anime; bay li role="status" ak yon aria-label.

-color-inverse sèlman repinte segman anwo bor anime a, pa tout tras la, kidonk li toujou li kòrèkteman sou yon kat fonse san bezwen yon koulè tras separe.

Source: spinner.css

Aksè

Bay spinner la role="status" ak yon aria-label pou lektè ekran yo anonse li kòm yon estati chajman an dirèk.

Itilizasyon

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/spinner.css";

Demo

Egzanp

html
<span class="instui-spinner" role="status" aria-label="Loading"></span>

Inverse color

html
<div class="instui-view instui-card -background-primary-inverse">
  <span class="instui-spinner -color-inverse" role="status" aria-label="Loading"></span>
</div>

Modifikatè

ModifikatèDeskripsyon
.-color-inverseSou yon sifas fonse.
.-size-largeGwo. Alias long fòm pou -size-lg.
.-size-lgGwo.
.-size-smTi.
.-size-smallTi. Alias long fòm pou -size-sm.
.-size-x-smallEkstra-ti. Aliaz fòm long pou -size-xs.
.-size-xsEkstra-ti.

Animasyon

AnimasyonDeskripsyon
pantoken-spinner-rotate

Tokens konsome

TokenTipValè
--instui-component-spinner-color<color>LightDarklight-dark(#2871AF, #7FB4F1)
--instui-component-spinner-inverse-color<color>#ffffff
--instui-component-spinner-spinner-size-lg<length>4.5rem
--instui-component-spinner-spinner-size-md<length>3.5rem
--instui-component-spinner-spinner-size-sm<length>2rem
--instui-component-spinner-spinner-size-xs<length>1rem
--instui-component-spinner-stroke-width-lg<length>0.75em
--instui-component-spinner-stroke-width-md<length>0.5em
--instui-component-spinner-stroke-width-sm<length>0.375em
--instui-component-spinner-stroke-width-xs<length>0.25em
--instui-component-spinner-track-color<color>LightDarklight-dark(rgba(35,68,101,0.1), rgba(255,255,255,0.1))