@metamask/design-system-react-native
Version:
1 lines • 594 B
Source Map (JSON)
{"version":3,"file":"TextOrChildren.types.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/TextOrChildren.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextProps } from '../../Text';\n\n/**\n * TextOrChildren component props.\n */\nexport type TextOrChildrenProps = {\n /**\n * Required prop for the content to be rendered\n */\n children: React.ReactNode | string;\n /**\n * Optional props to be passed to the Text component when children is a string\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n};\n"]}