Spinners
#
OverviewIndicate the loading state of a component or page with spinners.
#
Examples#
Border spinnerUse the border spinners for a lightweight loading indicator.
- Web Component
- React
- Angular
<uxf-spinner role="status"> <span class="visually-hidden">Loading...</span></uxf-spinner>
<UxfSpinner role="status"><span class="visually-hidden">Loading...</span></UxfSpinner>
<uxf-spinner role="status"> <span class="visually-hidden">Loading...</span></uxf-spinner>
#
ColorsThe border spinner uses currentColor for its border-color, meaning you can customize the color. You can use any of our text color utilities on the standard spinner.
- Web Component
- React
- Angular
<uxf-spinner role="status" variant="primary"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="secondary"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="success"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="danger"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="warning"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="info"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="light"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="dark"> <span class="visually-hidden">Loading...</span></uxf-spinner>
<UxfSpinner role="status" variant="primary"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="secondary"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="success"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="danger"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="warning"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="info"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="light"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" variant="dark"> <span class="visually-hidden">Loading...</span></UxfSpinner>
<uxf-spinner role="status" variant="primary"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="secondary"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="success"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="danger"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="warning"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="info"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="light"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner role="status" variant="dark"> <span class="visually-hidden">Loading...</span></uxf-spinner>
#
Growing spinnerIf you don’t fancy a border spinner, switch to the growing spinner. While it doesn't technically spin, it does repeatedly grow!
- Web Component
- React
- Angular
<uxf-spinner grow="true" role="status"> <span class="visually-hidden">Loading...</span></uxf-spinner><br/> <br/><uxf-spinner grow="true" role="status" variant="primary"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="secondary"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="success"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="danger"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="warning"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="info"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="light"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="dark"> <span class="visually-hidden" >Loading...</span></uxf-spinner>
<UxfSpinner role="status" grow="true" > <span class="visually-hidden">Loading...</span></UxfSpinner><br></br><UxfSpinner role="status" grow="true" variant="primary"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="secondary"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="success"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="danger"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="warning"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="info"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="light"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" variant="dark"> <span class="visually-hidden">Loading...</span></UxfSpinner>
<uxf-spinner grow="true" role="status"> <span class="visually-hidden">Loading...</span></uxf-spinner><br/> <br/><uxf-spinner grow="true" role="status" variant="primary"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="secondary"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="success"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="danger"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="warning"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="info"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="light"> <span class="visually-hidden" >Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" variant="dark"> <span class="visually-hidden" >Loading...</span></uxf-spinner>
#
SizeAdd property small to make a smaller spinner that can quickly be used within other components.
- Web Component
- React
- Angular
<uxf-spinner role="status" small="true"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" small="true"> <span class="visually-hidden">Loading...</span></uxf-spinner>
<UxfSpinner role="status" small="true"> <span class="visually-hidden">Loading...</span></UxfSpinner><UxfSpinner role="status" grow="true" small="true"> <span class="visually-hidden">Loading...</span></UxfSpinner>
<uxf-spinner role="status" small="true"> <span class="visually-hidden">Loading...</span></uxf-spinner><uxf-spinner grow="true" role="status" small="true"> <span class="visually-hidden">Loading...</span></uxf-spinner>