Buckets:
| import * as React from 'react'; | |
| import { AppendOwnerStateReturnType } from "../appendOwnerState/index.js"; | |
| import { MergeSlotPropsParameters, MergeSlotPropsResult, WithCommonProps } from "../mergeSlotProps/index.js"; | |
| export type UseSlotPropsParameters<ElementType extends React.ElementType, SlotProps, ExternalForwardedProps, ExternalSlotProps, AdditionalProps, OwnerState> = Omit<MergeSlotPropsParameters<SlotProps, ExternalForwardedProps, ExternalSlotProps, AdditionalProps>, 'externalSlotProps'> & { | |
| /** | |
| * The type of the component used in the slot. | |
| */ | |
| elementType: ElementType | undefined; | |
| /** | |
| * The `slotProps.*` of the Base UI component. | |
| */ | |
| externalSlotProps: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) | undefined; | |
| /** | |
| * The ownerState of the Base UI component. | |
| */ | |
| ownerState: OwnerState; | |
| /** | |
| * Set to true if the slotProps callback should receive more props. | |
| */ | |
| skipResolvingSlotProps?: boolean; | |
| }; | |
| export type UseSlotPropsResult<ElementType extends React.ElementType, SlotProps, AdditionalProps, OwnerState> = AppendOwnerStateReturnType<ElementType, MergeSlotPropsResult<SlotProps, object, object, AdditionalProps>['props'] & { | |
| ref: ((instance: any | null) => void) | null; | |
| }, OwnerState>; | |
| /** | |
| * @ignore - do not document. | |
| * Builds the props to be passed into the slot of an unstyled component. | |
| * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior. | |
| * If the slot component is not a host component, it also merges in the `ownerState`. | |
| * | |
| * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component. | |
| */ | |
| declare function useSlotProps<ElementType extends React.ElementType, SlotProps, AdditionalProps, OwnerState>(parameters: UseSlotPropsParameters<ElementType, SlotProps, object, WithCommonProps<Record<string, any>>, AdditionalProps, OwnerState>): import("@mui/types").Simplify<import("@mui/types").Simplify<SlotProps & object & AdditionalProps & { | |
| className?: string; | |
| style?: React.CSSProperties; | |
| }> & { | |
| ref: ((instance: any | null) => void) | null; | |
| } & { | |
| ownerState: ElementType extends React.ComponentType<any> ? OwnerState : ElementType extends keyof React.JSX.IntrinsicElements ? undefined : OwnerState | undefined; | |
| }>; | |
| export default useSlotProps; |
Xet Storage Details
- Size:
- 2.35 kB
- Xet hash:
- 9c062b996dcaea3a0b537fb1c61d7c051dcdca255cdbf773fad2c505eccea563
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.