The following props are available for dialog component. These are the custom props that come with we've added for the dialog component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
open | boolean | Open the dialog | No default value it's a required prop. |
handler | function | Controls open and close states for dialog | No default value it's a required prop. |
size | Size | Change dialog size | md |
dismiss | Dismiss | Change backdrop dismiss listeners | undefined |
animate | Animate | Change dialog animation | undefined |
className | string | Add custom className for dialog | '' |
children | node | Add content for dialog | No default value it's a required prop. |
import type { DialogProps } from "@material-tailwind/react";
The following props are available for dialog header component. These are the custom props that come with we've added for the dialog header component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
className | string | Add custom className for dialog header | '' |
children | node | Add content for dialog header | No default value it's a required prop. |
import type { DialogHeaderProps } from "@material-tailwind/react";
The following props are available for dialog body component. These are the custom props that come with we've added for the dialog body component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
divider | boolean | Add border top & bottom for dialog body | false |
className | string | Add custom className for dialog body | '' |
children | node | Add content for dialog body | No default value it's a required prop. |
import type { DialogBodyProps } from "@material-tailwind/react";
The following props are available for dialog footer component. These are the custom props that come with we've added for the dialog footer component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
className | string | Add custom className for dialog footer | '' |
children | node | Add content for dialog footer | No default value it's a required prop. |
import type { DialogFooterProps } from "@material-tailwind/react";
type size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
type dismissType = {
enabled?: boolean;
escapeKey?: boolean;
referencePointerDown?: boolean;
outsidePointerDown?: boolean;
ancestorScroll?: boolean;
bubbles?: boolean;
};
type animate = {
mount?: object;
unmount?: object;
};