Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Key Features
  • Customization Options
  • Usage:

Was this helpful?

  1. Components

Spinners

Indicate the loading state of a component or page with Bootstrap spinners, built entirely with HTML, CSS, and no JavaScript.

PreviousSelectNextTable

Last updated 1 year ago

Was this helpful?

Key Features

  • Flexible HTML Tag: Choose between div or span for the spinner's HTML element.

  • Spinner Types: Offers both border and grow spinner types, catering to different aesthetic preferences.

  • Color Customization: Leverages the current color scheme, allowing for easy appearance changes with text color utilities.

  • Size Options: Includes size customization for creating smaller spinners that fit within other components.

  • Accessibility: Supports hidden status messages for screen readers, enhancing accessibility.

Customization Options

  • Type, Size, and Color Classes: Apply classes based on the spinner type, size, and color for tailored visual appearance.

  • Utility Classes: Incorporate additional utility classes for further customization and styling.

Usage:

{% include 'radix:spinner' with {
  html_tag: 'div',
  type: 'border',
  color: 'primary',
  size: 'sm',
  hidden_status: false,
  spinner_utility_classes: ['custom-spinner'],
  content: 'Loading...'
} %}
Bootstrap docs