forked from mui/material-ui
/
SheetProps.ts
37 lines (33 loc) · 1.15 KB
/
SheetProps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import * as React from 'react';
import { ColorPaletteProp, SxProps, VariantProp } from '../styles/types';
export type SheetSlot = 'root';
export interface SheetPropsColorOverrides {}
export interface SheetPropsVariantOverrides {}
export interface SheetTypeMap<P = {}, D extends React.ElementType = 'div'> {
props: P & {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'neutral'
*/
color?: OverridableStringUnion<ColorPaletteProp, SheetPropsColorOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps;
/**
* The variant to use.
* @default 'plain'
*/
variant?: OverridableStringUnion<VariantProp, SheetPropsVariantOverrides>;
};
defaultComponent: D;
}
export type SheetProps<
D extends React.ElementType = SheetTypeMap['defaultComponent'],
P = { component?: React.ElementType },
> = OverrideProps<SheetTypeMap<P, D>, D>;