MKBox
The MKBox
component is a wrapper component which provides different CSS utlities for styling the elements. It uses MUI Box
in base and you can use all of the props from MUI Box
for the MKBox
component.
Its one of the most powerful components that give you all of the possibilites for providing styles for an element directly in JSX.
The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.
Demo
// Material Kit 2 React Components
import MKBox from "components/MKBox";
Box
Props Information
Name | Type | Default | Description |
---|---|---|---|
bgColor | string | transparent | Change the MKBox background color. |
color | string | dark | Change the MKBox text color. |
variant | 'gradient''contained' | contained | Change the MKBox background type. |
opacity | number | 1 | Change the MKBox opacity. |
borderRadius | string | none | Set a border radius for the MKBox . |
shadow | string | none | Set a box shadow for the MKBox . |
coloredShadow | 'primary''secondary''info''success''warning''error''light''dark''none' | none | Set a colorful box shadow for the MKBox . |
MUI Props | You can pass all of the MUI System Properties for the MKBox as well. |