API reference: @salmonui/notifications/spinner
SpinnerPropsinterface
import type { SpinnerProps } from '@salmonui/notifications/spinner';interface SpinnerProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
label?: string;
size?: SpinnerSize | number;
loading?: boolean;
overlay?: boolean;
indicator?: ReactNode;
children?: ReactNode;
ref?: Ref<HTMLElement>;
}
| Name | Signature | Description |
|---|---|---|
labeloptional | label?: string; | Accessible loading text. With a label the spinner is a
|
sizeoptional | size?: SpinnerSize | number; |
|
loadingoptional | loading?: boolean; | Shows the indicator (default |
overlayoptional | overlay?: boolean; | Covers the nearest positioned ancestor with a scrim and centers the indicator. |
indicatoroptional | indicator?: ReactNode; | Replaces the built-in ring. |
childrenoptional | children?: ReactNode; | Content the spinner covers while |
refoptional | ref?: Ref<HTMLElement>; | The root element: the spinner |