UNPKG

@expo/html-elements

Version:

Universal semantic HTML React components for iOS, Android, web, and desktop

15 lines (10 loc) 406 B
import { ClassAttributes, ComponentProps, ComponentType } from 'react'; import Text from './Text'; type NativeTextProps = ComponentProps<typeof Text> & ClassAttributes<typeof Text>; export type TableTextProps = NativeTextProps & { /** @platform web */ colSpan?: number | string; /** @platform web */ rowSpan?: number | string; }; export const TableText = Text as ComponentType<TableTextProps>;