interface SpacingProps {
    children?: ReactNode;
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    size?: number;
    sx?: SxProps<Theme>;
    variant?: "small" | "medium";
}

Properties

children?: ReactNode
customAttribute?: {
    attribute: string;
    value: string | number;
}

Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

size?: number

Optional size to adjust the spacing. Automatically becomes 8px larger on lg screens and above.

sx?: SxProps<Theme>

The system prop that allows defining system overrides as well as additional CSS styles.

variant?: "small" | "medium"

Variant of the spacing.