Box
Add inline styles to any element or component with sx
Import
Source
Docs
Package
Usage
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
Custom component
To use Box with custom component or element set component
prop to tag name or react component:
To use custom component with TypeScript provide type:
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback