DisplayListItem: React.ComponentType<DisplayListItemProps>

Type of item in a DisplayList

Must be passed as a child to DisplayList. Accepts props defined by DisplayListItemProps. Component must pass DisplayBaseItemProps.style to whatever it renders.

const Row = ({ index, style }: { index: number, style: React.CSSProperties }) => (
<div className="row" style={style}>
{ index }
</div>
);