Skip to content

venoid/admin-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Venoid Admin Modal Component

npm npm bundle size (scoped)

Modal component for your administration provides you good options how to show your modal with any content.

gif-example

Props

Props Type Default
actions Array [] Array of objects with options. Represent buttons in a footer.
active Boolean false Shows or hides modal.
close-button Boolean true Shows cross button at top right of an overlay.
header String 'Modal name' Text of a header.

action options

{
  label: 'Say hello' // String,
  onclick: () => { window.alert("Hello") }  // Function
}

Slots

Modal has just one slot (without name) for its content.

Name Purpose
-- Put content of the modal body

Demo

To see demo run a project:

  1. Install npm dependencies
  2. Run with npm run serve / yarn serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors