ModalProps
Interface of the
modal
prop exposed by the library specifically to modal components.TypeScript
export type ModalComponentProp<
P extends ModalfyParams,
Props = unknown,
M = keyof P
> = Props & {
modal: UsableModalComponentProp<P, M>
}
export type ModalProps<
N extends keyof ModalfyParams = keyof ModalfyParams,
P = void
> = ModalComponentProp<
ModalfyParams,
P,
N
>
Please refer to
ModalComponentProp
directly as it's the interface used under the hood by ModalProps
.Last modified 3mo ago