Create an indent/(empty space) before a object

Are there any supported ways of creating an indent before an object say i have a label in a horizontallayout and i want to indent this to the right. One could make a label with spaces as a string however this is not a very clean way of creating an indent. I could not find any indent support during my google searches so i was wondering if anyone knew of a way to create these indents

margin/padding/spacing checked?

component.addClassName(“ml-auto”); (assumption: lumo utility are used and layout is already at full width)

a screenshot of the UI would help, and a snippet of code where that part is implemented

The most obvious ones explainded here with a code snippet and screenshot:

        HorizontalLayout padding = new HorizontalLayout(
                new MyComponent(), new MyComponent(), new MyComponent());
        padding.setPadding(true);
        padding.setSpacing(false);
        HorizontalLayout spacing = new HorizontalLayout(
                new MyComponent(), new MyComponent(), new MyComponent());
        spacing.setSpacing(true);

        add(padding, spacing);

Thank you i have been able to solve it using your provided information!