--- github: true description: Display a modal within your application. headlessui: label: 'Dialog' to: 'https://headlessui.com/vue/dialog' --- ## Usage Use a `v-model` to control the Modal state. ::component-example #default :modal-example-basic #code ```vue ``` :: You can put a [Card](/layout/card) component inside your Modal to handle forms and take advantage of `header` and `footer` slots: ::component-example #default :modal-example-card #code ```vue ``` :: ### Disable overlay ::component-example #default :modal-example-disable-overlay #code ```vue ``` :: ### Disable transition ::component-example #default :modal-example-disable-transition #code ```vue ``` :: ### Prevent close ::component-example #default :modal-example-prevent-close #code ```vue ``` :: ## Props :component-props ## Preset :component-preset