### modal Modal is used to show a dialog or a box when you click a button [modal docs](https://daisyui.com/components/modal/) #### Class names - component: `modal` - part: `modal-box`, `modal-action`, `modal-backdrop`, `modal-toggle` - modifier: `modal-open` - placement: `modal-top`, `modal-middle`, `modal-bottom`, `modal-start`, `modal-end` #### Syntax Using HTML dialog element (recommended) ```html ``` If we want it to close when clicking outside: ```html ``` Using popover API (recommended only if we DON'T want to trap the keyboard navigation in the modal) ```html ``` If we want it to close when clicking outside: ```html ``` Using checkbox (legacy) ```html ``` Using anchor links (legacy) ```html Open modal ``` #### Rules - {MODIFIER} is optional and can have one of the modifier/placement class names - Use unique IDs for each modal - For HTML dialog element modals, add `
` for closing the modal with submit