{"version":3,"file":"AvatarBase.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBasePropsShared } from '@metamask/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../Text';\n\nexport type AvatarBaseProps = ComponentProps<'div'> &\n  AvatarBasePropsShared & {\n    /**\n     * Optional test id for querying in tests.\n     */\n    'data-testid'?: string;\n    /**\n     * Optional props to be passed to the Text component when rendering fallback text\n     * Only used when fallbackText is provided and no children\n     */\n    fallbackTextProps?: Partial<\n      React.HTMLAttributes<HTMLSpanElement> & TextProps\n    >;\n    /**\n     * Optional boolean that determines if the component should merge its props onto its immediate child\n     * instead of rendering a div element\n     *\n     * @default false\n     */\n    asChild?: boolean;\n  };\n"]}