@metamask/design-system-react-native
Version:
1 lines • 1.2 kB
Source Map (JSON)
{"version":3,"file":"BadgeStatus.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type { BadgeStatusStatus, BadgeStatusSize } from '../../types';\n\n/**\n * BadgeStatus component props.\n */\nexport type BadgeStatusProps = {\n /**\n * Optional prop to control the status of the badge\n * Possible values:\n * - BadgeStatusStatus.Active. (Connected)\n * - BadgeStatusStatus.Inactive. (Connected)\n * - BadgeStatusStatus.Disconnected.\n * - BadgeStatusStatus.New.\n * - BadgeStatusStatus.Attention.\n */\n status: BadgeStatusStatus;\n /**\n * Optional prop to determine whether the badge should display a border\n *\n * @default true\n */\n hasBorder?: boolean;\n /**\n * Optional prop to control the size of the BadgeStatus\n * Possible values:\n * - BadgeStatusSize.Md (8px),\n * - BadgeStatusSize.Lg (10px),\n *\n * @default AvatarBaseSize.Md\n */\n size?: BadgeStatusSize;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}