@olleemilsson/flowbite-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
30 lines (29 loc) • 930 B
TypeScript
import type { ComponentProps, FC } from 'react';
import type { FlowbiteColors, FlowbiteSizes } from '../Flowbite/FlowbiteTheme';
export interface FlowbiteSpinnerTheme {
base: string;
color: SpinnerColors;
light: {
off: {
base: string;
color: SpinnerColors;
};
on: {
base: string;
color: SpinnerColors;
};
};
size: SpinnerSizes;
}
export interface SpinnerColors extends Pick<FlowbiteColors, 'failure' | 'gray' | 'info' | 'pink' | 'purple' | 'success' | 'warning'> {
[key: string]: string;
}
export interface SpinnerSizes extends Pick<FlowbiteSizes, 'xs' | 'sm' | 'md' | 'lg' | 'xl'> {
[key: string]: string;
}
export interface SpinnerProps extends Omit<ComponentProps<'span'>, 'color'> {
color?: keyof SpinnerColors;
light?: boolean;
size?: keyof SpinnerSizes;
}
export declare const Spinner: FC<SpinnerProps>;