Open joeyfigaro opened 2 years ago
Looks like Col is currently expecting its component prop to be of type (() => string) | string–documentation lists the expected type as elementType, and passing it a component works as expected.
Col
(() => string) | string
elementType
type ColProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & { width?: "auto" | number | string, debug?: boolean, offset?: Offsets, push?: Push, pull?: Pull, style?: object, component?: (() => string) | string } & ScreenClassMap<number | "content">;
Looks like (p: ColProps) => JSX.Element may be a better replacement here.
(p: ColProps) => JSX.Element
Any updates on this?
Looks like
Col
is currently expecting its component prop to be of type(() => string) | string
–documentation lists the expected type aselementType
, and passing it a component works as expected.