Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
41 lines
936 B
JavaScript
41 lines
936 B
JavaScript
import Sheet from '@mui/joy/Sheet';
|
|
import JoyUsageDemo from 'docs/src/modules/components/JoyUsageDemo';
|
|
|
|
export default function SheetUsage() {
|
|
return (
|
|
<JoyUsageDemo
|
|
componentName="Sheet"
|
|
data={[
|
|
{
|
|
propName: 'variant',
|
|
knob: 'radio',
|
|
defaultValue: 'plain',
|
|
options: ['plain', 'outlined', 'soft', 'solid'],
|
|
},
|
|
{
|
|
propName: 'color',
|
|
knob: 'color',
|
|
defaultValue: 'neutral',
|
|
options: ['neutral', 'primary', 'danger', 'info', 'success', 'warning'],
|
|
},
|
|
]}
|
|
renderDemo={(props) => (
|
|
<Sheet
|
|
{...props}
|
|
sx={{
|
|
width: 250,
|
|
height: 200,
|
|
m: 1,
|
|
mb: 4,
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
Sheet
|
|
</Sheet>
|
|
)}
|
|
/>
|
|
);
|
|
}
|