MYDS Logo

    MYDS

    Beta

    Spinner

    A customizable loading spinner component that provides visual feedback for loading states.

    Usage

    import { Spinner } from "@govtechmy/myds-react/spinner";
    export default () => (
        <Spinner/>
    );

    Examples

    Variants

    Use the color prop to change the spinner style!

    Size

    Use the size prop to change the spinner size!

    Show

    Use the show prop to show or hide the spinner

    Props

    Spinner

    PropTypeDefault
    color
    enum
    gray
    size
    enum
    small
    show
    boolean
    true

    On this page