@coreui/react
Version:
UI Components Library for React.js
33 lines (32 loc) • 1.12 kB
TypeScript
import { ElementType, HTMLAttributes } from 'react';
import { PolymorphicRefForwardingComponent } from '../../helpers';
import type { Colors } from '../../types';
export interface CSpinnerProps extends HTMLAttributes<HTMLDivElement | HTMLSpanElement> {
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*/
as?: ElementType;
/**
* A string of all className you want applied to the component.
*/
className?: string;
/**
* Sets the color context of the component to one of CoreUI’s themed colors.
*
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
*/
color?: Colors;
/**
* Size the component small.
*/
size?: 'sm';
/**
* Set the button variant to an outlined button or a ghost button.
*/
variant?: 'border' | 'grow';
/**
* Set visually hidden label for accessibility purposes.
*/
visuallyHiddenLabel?: string;
}
export declare const CSpinner: PolymorphicRefForwardingComponent<'div', CSpinnerProps>;