---
title: Examples
slug: wip/va61-examples
createdAt: 2023-07-20T14:45:03.180Z
---

# Examples

## Basic usage

To render a Spinner in a specific variant, provide values to properties according to the API documentation.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/7c3d10121aaf016ae3b454ba7cbd30d3?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22; height=&#x22;143px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Resize spinner

By default, the size of the spinner adapts to the current font size. On a document level, this is usually 16px.

It can be resized to any dimension by setting the `width` and `height` of the element, or the font-size of the element or the parent via CSS:

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/3b32130b7a8d6845e8f28cd24ff7c0b2?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22; height=&#x22;244px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/184d8c992ba3543ccee422893f06fbbe?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22; height=&#x22;233px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Change the appearance

By default, the Spinner adapts to a light mode environment by appearing dark. When in a dark mode environment, the Spinner should appear light instead.

The appearance of a Spinner can be set using the appearance property or by nesting it into a cosmos-mode component. Read more about the [Mode & Appearance](https://cosmos.redbull.design/wip/mode-and-appearance) concept.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/77568d5cbdfec43774e67d89170ac26f?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22; height=&#x22;294px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

