All Projects → davodaslanifakor → modaltor

davodaslanifakor / modaltor

Licence: MIT license
modal component for vuejs

Programming Languages

Vue
7211 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to modaltor

vue-universal-modal
Universal modal plugin for Vue3
Stars: ✭ 57 (-30.49%)
Mutual labels:  modal, vue-modal
vue-modal
A customizable, stackable, and lightweight modal component for Vue.
Stars: ✭ 96 (+17.07%)
Mutual labels:  modal, vue-modal
react-native-card-animated-modal
An animated modal from a card item in a list for React Native.
Stars: ✭ 93 (+13.41%)
Mutual labels:  modal
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-76.83%)
Mutual labels:  modal
trashed
Trashed is an organizational tool designed to help users keep their communities clean.
Stars: ✭ 13 (-84.15%)
Mutual labels:  modal
ngx-simple-modal
A simple unopinionated framework to implement simple modal based behaviour in angular (v2+) projects.
Stars: ✭ 50 (-39.02%)
Mutual labels:  modal
JHTAlertController
A custom iOS alert that replaces the stock UIAlertController. Easily style the alert to match your app. Written in Swift for iOS.
Stars: ✭ 58 (-29.27%)
Mutual labels:  modal
bootstrap-modal-ios
Bootstrap Modal for iOS
Stars: ✭ 20 (-75.61%)
Mutual labels:  modal
jquery.dialog.js
A lightweight replacement for the browser's default dialog boxes.
Stars: ✭ 17 (-79.27%)
Mutual labels:  modal
wechat-miniprogram-dialog
微信小程序弹窗组件 wxapp dialog component
Stars: ✭ 50 (-39.02%)
Mutual labels:  modal
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-82.93%)
Mutual labels:  modal
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-63.41%)
Mutual labels:  modal
react-native-ios-modal
A react-native component for displaying a modal on iOS by natively wrapping a react-native view inside a UIViewController and presenting it.
Stars: ✭ 94 (+14.63%)
Mutual labels:  modal
react-portalgun
Lightweight portal system for React. Mega seeds included 🔫
Stars: ✭ 75 (-8.54%)
Mutual labels:  modal
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-70.73%)
Mutual labels:  modal
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (-68.29%)
Mutual labels:  modal
angular-custom-modal
Angular2+ Modal / Dialog (with inner component support).
Stars: ✭ 30 (-63.41%)
Mutual labels:  modal
react-fusionui
☢️ Nuclear power-up for your UI.
Stars: ✭ 13 (-84.15%)
Mutual labels:  modal
react-native-lightning-modal
A performant bottom modal that works using React Native Reanimated 2
Stars: ✭ 20 (-75.61%)
Mutual labels:  modal
react-accessible-modal
Accessible modal dialog component for React
Stars: ✭ 17 (-79.27%)
Mutual labels:  modal

vue-modaltor

Changelog

All notable changes to this project will be documented in this file.

vue modal component for vuejs and i hope it be useful for everyone ...

you can see example usages here

Edit Vue Template

Features

  • no need to handle modal's height manually it extends as the content of modal increases .
  • manage modal's size on different dimensions with one single attribute see responsive
  • scrollable modal, modal will get scroll if content is more than current view page height see close-scroll
  • modals has multiple parent animations parent-animation
  • edit icon close svg or icon font parent-animation
  • hide icon close parent-animation

Installation

npm install vue-modaltor --save
yarn add vue-modaltor

then you can import modaltor in

VUE2

import Vue from "vue";
import VueModalTor from "vue-modaltor/dist/vue-modaltor.common";
import "vue-modaltor/dist/vue-modaltor.css";

Vue.use(VueModalTor, {
    bgPanel: "#7957d5"  // add custome options
});

NUXT-SSR

in file /plugins/modal.js

import Vue from "vue"
import VueModalTor from "vue-modaltor/dist/vue-modaltor.common.js"
import "vue-modaltor/dist/vue-modaltor.css"
Vue.use(VueModalTor)

then add plugins part in nuxt.config.js

plugins: [
    "~/plugins/modal.js"
]

Also, can use CDN

And check it this issues

Example

<template>
  <div>
    <vue-modaltor :visible="open" @hide="open=false">
      <template #header>
      <!--    add your custom header     -->
        <div>
          <i class="close-icon">x</i>
          <p>add modal title or not</p>
        </div>
      </template>
      <template #body>
          <p>
            “Never forget what you are,
            for surely the world will not. 
            Make it your strength. Then it can never be your weakness.
            Armour yourself in it, and it will never be used to hurt you.
            ” ― George R.R. Martin, A Game of Thrones.
          </p>
        </template>
    </vue-modaltor>
    <button @click="open=true">modal-basic</button>
  </div>
</template>
<script>
export default {
    name: "YourComponentName",
    data() {
        return {
          open: false
        }
    }
}
</script>

Props

<script>
  export default {
    props: {
      // this is for toggle show modal
      // :visible:false
      visible: {
        type: Boolean,
        required: false,
        default: false
      },
      // this is for responsive modal and
      // :resize-width='{1200:"50%",992:"70%",768:"90%"}'
      resizeWidth:{
        type:Object,
      },
      // this is for animating modal
      // :animation-panel='slide-right'
      // :animation-panel='slide-left'
      // :animation-panel='slide-top'
      // :animation-panel='slide-bottom'
      animationPanel:{
        type: String,
        required: false,
        default: 'modal-fade'
      },
      // this is for animating animationParent modal
      // :animation-parent='scale'
      animationParent:{
        type: String,
        required: false,
        default: 'modal-fade'
      },
      // this is for color overlay
      bgOverlay:{
        type: String,
        required: false,
        default: '#fff'
      },
      // this is for color panel
      bgPanel:{
        type: String,
        required: false,
        default: '#fff'
      },
      //set default width modal
      // :default-width="'50%'"
      // :default-width="'495px'"
      // :default-width="'40em'"
      defaultWidth:{
        type: String,
        required: false,
        default: '50%'
      },
      // this is option for close scroll body when show modal
      // :close-scroll="false"  // if true close scroll body
      closeScroll:{
        type: Boolean,
        required: false,
        default: true
      },
      // this. for padding right scroll body 
      // when modal is open and has scroll when closeScroll is true
      spaceScroll:{
        type: String,
        required: false,
        default: "15px"
      }
    }
  }
</script>

Slots

#header
    - create your own header

#body 
    - create your own body

TODO List

  • Add custom slot for header , body and footer
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].