@metamask/design-system-react-native
Version:
15 lines • 449 B
text/typescript
import type { TextProps } from "../../Text/index.cjs";
/**
* TextOrChildren component props.
*/
export type TextOrChildrenProps = {
/**
* Required prop for the content to be rendered
*/
children: React.ReactNode | string;
/**
* Optional props to be passed to the Text component when children is a string
*/
textProps?: Omit<Partial<TextProps>, 'children'>;
};
//# sourceMappingURL=TextOrChildren.types.d.cts.map