# Modal
If you want to display some content on demand in a very subtle way, a Now UI Modal is the perfect choice for this. We created custom modal components based on Bootstrap.
To use the modal, first import it:
import {Modal} from 'src/components'
1
Global usage
Vue.component(Modal)
1
Local usage
export default {
components: {
Modal
}
}
1
2
3
4
5
2
3
4
5
# Clasic modal
Classic, restyled modal
# Notice modal
# Small modal
Best way to notify a user in a nice way.
# Optional sizes
Modals have two optional sizes, available via modifier classes to be placed on a
.modal-dialog
.
These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
# Modal Props
# Modal Events
Event Name | Description | Parameters |
---|---|---|
close | Triggered when modal is closed | - |
# Slots
Name | Description |
---|---|
default | Default content for the modal |
header | Header content |
close-button | Content for the close button. As fallback, there is the close icon inside this slot |
footer | Modal footer content |