1.0.6 • Published 2 years ago

@lucasz/d-modal v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

DModal3

Usage

  1. Import the component

import DModal from 'd-modal3';

  1. Add it to the components object

components: {DModal}

  1. Use it in the template
<DModal
  ...props
  >Modal content</DModal>

Props

NameTypeRequiredValuesDescription
hasBackdropBooleanDefault value: falseA dark background to lay focus on the modal.
closeIconStringDefault value: ./icn_close-default.svgThe icon for closing the modal.
isVisibleBooleanDefault value: falseFor displaying the modal.

Events

NameDescription
onCloseThis event is triggered if there is a close event, which could be clicking on the close button or clicking on the backdrop.