@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
26 lines (25 loc) • 1.3 kB
TypeScript
import { type FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
type Props = Omit<FontAwesomeIconProps, "fixedWidth"> & {
/** 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;
};
/**
* Font awesome icon wrapper
*/
declare const Icon: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
export type IconProps = React.ComponentPropsWithRef<typeof Icon>;
declare const _default: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<SVGSVGElement>> & {
Spinner: import("react").ForwardRefExoticComponent<import("./Icon.Spinner").IconSpinnerProps & import("react").RefAttributes<SVGSVGElement>>;
Step: {
({ variant, marginRight, marginLeft, className, }: import("./Icon.Step").StepProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
};
export default _default;