Finds the Nivo chart element among children and returns its props.
The chart is the first element whose type is a component rather than an
HTML tag. Fragments and plain elements around it are looked through, which
is what lets a Responsive* chart sit in the sized <div> it measures:
<MaidrNivo type="bar"><div style={{ height: 400 }}><ResponsiveBar ... /></div></MaidrNivo>.
Finds the Nivo chart element among
childrenand returns its props.The chart is the first element whose type is a component rather than an HTML tag. Fragments and plain elements around it are looked through, which is what lets a
Responsive*chart sit in the sized<div>it measures:<MaidrNivo type="bar"><div style={{ height: 400 }}><ResponsiveBar ... /></div></MaidrNivo>.