You are currently viewing the auto-generated docs from the master branch. The docs for the current release are available at https://react-bootstrap.github.io/
Bootstrap offers two animation styles for spinners. The animation style
can be configured with the animation property. An animation style
must always be provided when creating a spinner.
All standard visual variants are available for both animation styles by
setting the variant property. Alternatively spinners can be custom
sized with the style property, or custom CSS classes.
Like the original Bootstrap spinners, these can also be used with
buttons. To use this component out-of-the-box it is recommended you
change the element type to span by configuring the as property when
using spinners inside buttons.
To ensure the maximum accessibility for spinner components it is
recommended you provide a relevant ARIA role property,
and include screenreader-only readable text representation of the
spinner's meaning inside the component using Bootstrap's visually-hidden
class.
The example below provides an example of accessible usage of this
component.
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.