@metamask/design-system-react-native
Version:
31 lines • 1.01 kB
text/typescript
import type { ViewProps } from "react-native/index.js";
import type { IconProps, IconColor } from "../../Icon/index.mjs";
import type { TextProps } from "../../Text/index.mjs";
/**
* Spinner component props.
*/
export type SpinnerProps = {
/**
* Optional prop that sets the color of the spinner icon using predefined theme colors
*
* @default IconColor.IconDefault
*/
color?: IconColor;
/**
* Optional props to be passed to the loadingText element
*/
spinnerIconProps?: Partial<IconProps>;
/**
* Optional text to display on the right of the spinner, providing additional context or information about the loading state.
*/
loadingText?: string;
/**
* Optional props to be passed to the loadingText element
*/
loadingTextProps?: Omit<Partial<TextProps>, 'children'>;
/**
* Optional prop to add twrnc overriding classNames.
*/
twClassName?: string;
} & ViewProps;
//# sourceMappingURL=Spinner.types.d.mts.map