Tailwind CSS Dialog - Props



Dialog Props

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
animation boolean Change dialog animation false

Dialog Body Props

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


Types - Size

type size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl"