Add inline styles to any element or component with sx
Box allows you to use sx prop with any element or component. Box itself does not include any styles.
Box lets you add inline styles with sx prop
Box is a polymorphic component, you can change root element: