MAIDR JavaScript API
    Preparing search index...
    • 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>.

      Parameters

      • children: ReactNode

        What <MaidrNivo> was given

      Returns Readonly<Record<string, unknown>> | undefined

      The chart's props, or undefined when there is no component element