UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

24 lines (23 loc) 706 B
import * as React from "react"; import type { HTMLChakraProps } from "../../styled-system"; export interface LoaderProps extends HTMLChakraProps<"span"> { /** * Whether the loader is visible * @default true */ visible?: boolean | undefined; /** * The spinner to display when loading */ spinner?: React.ReactNode | undefined; /** * The placement of the spinner * @default "start" */ spinnerPlacement?: "start" | "end" | undefined; /** * The text to display when loading */ text?: React.ReactNode | undefined; } export declare const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLSpanElement>>;