product | title |
---|---|
joy-ui |
React Sheet component |
Sheet is a useful surface component that implements the global variant feature.
The Sheet
container is a generic container.
It's a sibling to the Box
component with the difference being that it supports Joy UI's global variants out of the box.
{{"demo": "SheetUsage.js", "hideToolbar": true, "bg": true}}
{{"component": "modules/components/ComponentLinkHeader.js"}}
After installation, you can start building with this component using the following basic elements:
import Sheet from '@mui/joy/Sheet';
export default function MyApp() {
return <Sheet>Holy sheet!</Sheet>;
}
The Sheet
component, in addition to the variants, also has access to the color
prop, allowing you to use every palette of the theme.
{{"demo": "SimpleSheet.js"}}