@metamask/design-system-react-native
Version:
1 lines • 1.11 kB
Source Map (JSON)
{"version":3,"file":"Spinner.types.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type { IconProps, IconColor } from '../../Icon';\nimport type { TextProps } from '../../Text';\n\n/**\n * Spinner component props.\n */\nexport type SpinnerProps = {\n /**\n * Optional prop that sets the color of the spinner icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional props to be passed to the loadingText element\n */\n spinnerIconProps?: Partial<IconProps>;\n /**\n * Optional text to display on the right of the spinner, providing additional context or information about the loading state.\n */\n loadingText?: string;\n /**\n * Optional props to be passed to the loadingText element\n */\n loadingTextProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}