Interface FlexibleGridOptions

Interface defining the props for the FlexibleGrid component.

interface FlexibleGridOptions {
    customWidth: number;
    customHeight: number;
    rows: number;
    columns: number;
    componentsToRender: ReactNode[];
    showAspect?: boolean;
    backgroundColor?: string;
}

Properties

customWidth: number

Custom width for each grid item.

customHeight: number

Custom height for each grid item.

rows: number

Number of rows in the grid.

columns: number

Number of columns in the grid.

componentsToRender: ReactNode[]

Array of React components or elements to render in the grid.

showAspect?: boolean

Flag indicating whether to show the aspect ratio.

backgroundColor?: string

Background color for each grid item.

'transparent'