Lumagrid
    Preparing search index...

    Interface WidgetContainerProps

    Props for WidgetContainer.

    interface WidgetContainerProps {
        children: (
            transformedData: TransformedData,
            width: number,
            height: number,
        ) => ReactNode;
        data: unknown;
        height?: string | number;
        title?: string;
        transforms?: AnyTransform[];
        width?: string | number;
    }
    Index
    children: (
        transformedData: TransformedData,
        width: number,
        height: number,
    ) => ReactNode

    Render prop receives transformed data plus resolved pixel dimensions. Dimensions are measured via ResizeObserver when width/height are CSS strings.

    data: unknown

    Raw data to pass through the transform pipeline. Can be any shape — the first transform is responsible for normalizing it.

    height?: string | number

    Container height in pixels or CSS string. Default: 400.

    title?: string

    Optional title rendered above the content area.

    transforms?: AnyTransform[]

    Optional ordered list of transforms. Applied as a pipeline. If omitted, data must already conform to TransformedData.

    width?: string | number

    Container width in pixels or CSS string (e.g. '100%'). Default: '100%'.