UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

26 lines (25 loc) 655 B
/** * This module contains the Spinner component. * @module */ export interface SpinnerProps { /** * The size of the spinner */ size?: number | string; } /** * The Spinner component is used to display a loading indicator. Typically used * in buttons, modals, and other components that require a loading state. * @see https://cerberus.digitalu.design/react/loading-states/ * @example * ```tsx * <Button> * <Show when={loading} fallback={<>Save</>}> * Saving * <Spinner size={24} /> * </Show> * </Button> * ``` */ export declare function Spinner(props: SpinnerProps): import("react/jsx-runtime").JSX.Element;