react-grid-system
react-grid-system copied to clipboard
Col `component` prop typings
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.
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.
Any updates on this?