JSPM

@chakra-ui/spinner

0.0.0-dev-20220813053727
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 566985
  • Score
    100M100P100Q192844F
  • License MIT

A React component for displaying spinners and loaders

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chakra-ui/spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @chakra-ui/spinner

    Spinners provide a visual cue that an action is processing, awaiting a course of change or a result.

    Installation

    yarn add @chakra-ui/spinner
    
    # or
    
    npm i @chakra-ui/spinner

    Import component

    import { Spinner } from "@chakra-ui/spinner"

    Usage

    <Spinner />

    Spinner with different sizes

    Change the size of the spinner by passing the size prop.

    <>
      <Spinner size="xs" />
      <Spinner size="sm" />
      <Spinner size="md" />
      <Spinner size="lg" />
      <Spinner size="xl" />
    </>

    Spinner with color

    Change the background color of the moving section of the spinner by passing the color prop.

    <Spinner color="red.500" />

    Spinner with empty area color

    Change the background color of the spinner by passing the emptyColor prop.

    <Spinner color="red.500" emptyColor="gray.200" />

    Spinner with different speed

    Change the spinner's animation speed area by passing the speed prop. The unit of the value matches the animation-duration CSS property property.

    <Spinner color="red.500" emptyColor="gray.200" speed="0.65s" />