Interface MainContainerComponentOptions

Interface defining the props for the MainContainerComponent.

interface MainContainerComponentOptions {
    backgroundColor?: string;
    children: ReactNode;
    containerWidthFraction?: number;
    containerHeightFraction?: number;
    marginLeft?: number;
    marginRight?: number;
    marginTop?: number;
    marginBottom?: number;
    padding?: number;
}

Properties

backgroundColor?: string

The background color of the container.

'transparent'
children: ReactNode

The child elements to be rendered inside the container.

containerWidthFraction?: number

Fraction of the window width to be used for the container's width.

1
containerHeightFraction?: number

Fraction of the window height to be used for the container's height.

1
marginLeft?: number

Left margin of the container.

0
marginRight?: number

Right margin of the container.

0
marginTop?: number

Top margin of the container.

0
marginBottom?: number

Bottom margin of the container.

0
padding?: number

Padding inside the container.

0