Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] modal component #7

Open
raminjafary opened this issue Mar 2, 2020 · 0 comments
Open

[Feature Request] modal component #7

raminjafary opened this issue Mar 2, 2020 · 0 comments

Comments

@raminjafary
Copy link
Member

Feature Summary

I intend to implement a modal component with the following specifications:

  • Expose some events such as toggle
  • Expose options and props for further modification
  • Work as modal and popup

How might the modal component look like?

<script>
  import { Modal } from "svelte-admin";

 const open = false
 const title = ''
 const toggle = () =>  open= !open

  const props = {
   /* properties */ 
  }
</script>

  <Modal {...props} {toggle} {open} {title}>
   <!-- content -->
  </Modal>

This implementation is almost experimental and is subject to change for the final look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant