Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100878228
createStyled.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 3, 13:24
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Feb 5, 13:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24049570
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
createStyled.d.ts
View Options
import * as React from 'react';
import {
CreateMUIStyled as CreateMUIStyledStyledEngine,
CSSInterpolation,
} from '@mui/styled-engine';
import styleFunctionSx, { SxProps } from './styleFunctionSx';
import { Theme as DefaultTheme } from './createTheme';
export function shouldForwardProp(propName: PropertyKey): boolean;
export interface MUIStyledCommonProps<Theme extends object = DefaultTheme> {
theme?: Theme;
as?: React.ElementType;
sx?: SxProps<Theme>;
}
export interface MuiStyledOptions {
name?: string;
slot?: string;
// The difference between Interpolation and CSSInterpolation is that the former supports functions based on props
// If we want to support props in the overrides, we will need to change the CSSInterpolation to Interpolation<Props>
overridesResolver?: (props: any, styles: Record<string, CSSInterpolation>) => CSSInterpolation;
skipVariantsResolver?: boolean;
skipSx?: boolean;
}
export type CreateMUIStyled<T extends object = DefaultTheme> = CreateMUIStyledStyledEngine<
MUIStyledCommonProps<T>,
MuiStyledOptions,
T
>;
export default function createStyled<T extends object = DefaultTheme>(options?: {
defaultTheme?: T;
rootShouldForwardProp?: (prop: PropertyKey) => boolean;
slotShouldForwardProp?: (prop: PropertyKey) => boolean;
styleFunctionSx?: typeof styleFunctionSx;
}): CreateMUIStyled<T>;
Event Timeline
Log In to Comment