@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
35 lines (34 loc) • 1.32 kB
TypeScript
export type IconSpinnerProps = {
/** Size of the spinner, defined as a `number` (in px) or css length `string`
* (defaults to current css font-size, equivalent to `"1em"`) */
size?: React.CSSProperties["fontSize"];
/** Adds bifrost default spacing (8px) on the right side of the icon */
marginRight?: boolean;
/** Adds bifrost default spacing (8px) on the left side of the icon */
marginLeft?: boolean;
/** Adds a fixed width in Font Awesome 6. Does nothing in Font Awesome 7 where
* fixed width is default. If you don't want fixed width in FA7 use
* `widthAuto` instead.
* @deprecated */
fixedWidth?: boolean;
widthAuto?: boolean;
style?: React.CSSProperties;
className?: string;
};
/**
* Theme-colored spinner icon with customizable `size`. For more control use `<Icon />` instead.
* @example
* <Icon.Spinner />
* // is equivalent to
* <Icon icon={faSpinnerThird} className="bf-icon-spinner bfc-theme" />
* @example
* <Icon.Spinner size={64} />
* // is equivalent to
* <Icon
* icon={faSpinnerThird}
* className="bf-icon-spinner bfc-theme"
* style={{ fontSize: 64 }}
* />
*/
declare const IconSpinner: import("react").ForwardRefExoticComponent<IconSpinnerProps & import("react").RefAttributes<SVGSVGElement>>;
export default IconSpinner;