UNPKG

@hypothesis/frontend-shared

Version:

Shared components, styles and utilities for Hypothesis projects

16 lines (15 loc) 406 B
/** * @typedef SpinnerProps * @prop {'sm'|'md'|'lg'} [size='sm'] * @prop {'text-light'|'text'} [color='text-light'] */ /** * Style a spinner icon. * * @param {SpinnerProps} props */ export default function Spinner({ size, color }: SpinnerProps): import("preact").JSX.Element; export type SpinnerProps = { size?: "sm" | "md" | "lg" | undefined; color?: "text" | "text-light" | undefined; };