Alayna  Rippin

Alayna Rippin

1622262126

How to Create a Modal using Vue CLI and Tailwind CSS

Tailwindcss on the other side, a utility first CSS framework , is gaining a lot of traction due to the fact that it offers flexibility to develop unique and custom user interfaces using readily created elements (utilities ).

In this tutorial, we will be looking at how to create a modal using Vue CLI and Tailwind CSS.

Table of Content

  • Installing Vue JS and scaffolding our project
  • Adding Tailwind CSS to our Vue project
  • Creating Vue JS components for our project
  • Conclusion

#vue #vuejs #tailwind #tailwindcss #css

What is GEEK

Buddha Community

How to Create a Modal using Vue CLI and Tailwind CSS
Alayna  Rippin

Alayna Rippin

1622262126

How to Create a Modal using Vue CLI and Tailwind CSS

Tailwindcss on the other side, a utility first CSS framework , is gaining a lot of traction due to the fact that it offers flexibility to develop unique and custom user interfaces using readily created elements (utilities ).

In this tutorial, we will be looking at how to create a modal using Vue CLI and Tailwind CSS.

Table of Content

  • Installing Vue JS and scaffolding our project
  • Adding Tailwind CSS to our Vue project
  • Creating Vue JS components for our project
  • Conclusion

#vue #vuejs #tailwind #tailwindcss #css

Nat  Kutch

Nat Kutch

1624872482

Vue Component for Creating Modal using Tailwind CSS

Vue Tailwind Modal

Vue компонент для создания модальных окон, использующий Tailwind CSS.

Снимок экрана 2021-02-07 в 17 02 42

Установка проекта

npm install --save @ocrv/vue-tailwind-modal

Использование

Импортируйте стили из библиотеки (например, в main.js файле)

import '@ocrv/vue-tailwind-modal/styles'

Глобальная установка

В вашем main.js файле:

import VueTailwindModal from "@ocrv/vue-tailwind-modal"
Vue.component("VueTailwindModal", VueTailwindModal)

Внутри компонента

В вашем компоненте (.vue файл):

import VueTailwindModal from '@ocrv/vue-tailwind-modal'

export default {
  components: {
	VueTailwindModal,
	...
  },
  ...

После установки, используйте как и любой другой компонент:

<vue-tailwind-modal
  :showing="true"
  :showClose="true"
  @update:showing="showing = $event"
  @close="afterClose()"
>
<!-- Вставьте здесь содержимое вашего модального окна -->
</vue-tailwind-modal>

Для показа и скрытия модального окна достаточно передать соответствующие логические true или false в :showing аттрибут.
По-умолчанию, компонент будет отображать кнопку закрытия модального окна в правом верхнем углу экрана.
Убрать кнопку можно передав логическое false в :showClose аттрибут.

Закрытие модального окна стандартной кнопкой (при :showClose=“true”) генерирует 2 события:

  • update:showing событие со значением false.
  • событие close

Вы можете обрабатывать оба этих события, как в примере выше.


Vue Tailwind Modal

Vue component for creating modal using Tailwind CSS.

Project setup

npm install --save @ocrv/vue-tailwind-modal

Usage

Import styles from library (for example, in main.js file)

import '@ocrv/vue-tailwind-modal/styles'

Js

Global installation

In your main.js file:

import VueTailwindModal from "@ocrv/vue-tailwind-modal"
Vue.component("VueTailwindModal", VueTailwindModal)

Js

Inside the component

In your component (.vue file):

import VueTailwindModal from '@ocrv/vue-tailwind-modal'

export default {
  components: {
	VueTailwindModal,
	...
  },
  ...

Js

After installation, use like any other component:

<vue-tailwind-modal
  :showing="true"
  :showClose="true"
  @update:showing="showing = $event"
  @close="afterClose()"
>
<!-- Вставьте здесь содержимое вашего модального окна -->
</vue-tailwind-modal>

HTML

To show and hide a modal window, just pass the appropriate boolean true or false to the: showing attribute.

By default, the component will display the close button of the modal window in the upper right corner of the screen.

You can remove the button by passing a boolean false to the: showClose attribute.

Closing a modal window with a standard button (with: showClose = “true”) generates 2 events:

  • update: showing event with value false.
  • close event

You can handle both of these events as in the example above.

Download Details:

Author: OCRVblockchain
Download Link: Download The Source Code
Official Website: https://github.com/OCRVblockchain/vue-tailwind-modal

#vue #tailwind #tailwindcss #css

Elvis Miranda

Elvis Miranda

1578029098

7 Best Vue CSS Component for Your App

Vue CSS frameworks are great for many reasons; code is more universally understood, web applications are easier to maintain, and prototyping becomes less of an extra step and more part of the development process.

1. Tailwindcss-Vue

Tailwindcss-Vue is a library of UI components for Vue.js built using the Tailwind CSS utility-first CSS framework.

Tailwindcss-Vue

Download: https://github.com/advanced-data-machines/tailwindcss-vue/archive/master.zip

2. @zeit-ui/vue

Vue implementation for Zeit Style, originating from Zeit Design.

@zeit-ui/vue is a Vue implementation for zeit style, originating from Zeit Design. Lean more at GITHUB.

The design of the Zeit is concise and aesthetic feeling, this is an important reason for popular of Zeit. Now you can use them through the @zeit-ui/vue.

zeit-ui/vue

Download: https://github.com/zeit-ui/vue/archive/master.zip

3. CSSeffectsSnippets

Click on the animation to copy it to your clipboard

CSSeffectsSnippets

Demo: https://emilkowalski.github.io/css-effects-snippets/

Download: https://github.com/emilkowalski/css-effects-snippets/archive/master.zip

4. Vue Cirrus

A fully responsive and comprehensive CSS framework with beautiful controls and simplistic structure. Cirrus is designed to be adaptable to existing themes or when starting fresh. These are the Vue Components for this CSS framework.

Vue Cirrus

Demo: https://florianwoelki.github.io/vue-cirrus/#/

Download: https://github.com/FlorianWoelki/vue-cirrus/archive/master.zip

5. Vue CSS Modules

Seamless mapping of class names to CSS modules inside of Vue components.

Vue CSS Modules

Download: https://github.com/fjc0k/vue-css-modules/archive/master.zip

6. BG MixMaster 90 — CSS Background Grid /Pattern Generator

make a background grid (like graph paper) using only one background gradient property and ended up with this killer mix tape for making all kinds of background grids and patterns.

BG MixMaster 90

Download: https://codepen.io/jasesmith/pen/YZEYRL

7. CSSOBJ

CSS Rules from JS, change rules dynamically, CSSOM, css modules, auto vendor prefixer, media query for old browsers.

CSS in JS solution, create CSSOM and CSS rules from js, features:

  • CSS Rules create and diff
  • CSS modules with local class
  • Auto vendor prefixer
  • Media query for old browsers
  • Dynamically change CSS

CSSOBJ

Demo: https://cssobj.github.io/cssobj-demo/

Download: https://github.com/cssobj/cssobj/archive/master.zip

#css #vue-css #css-component #vue-css-component #vue-js

Luna  Mosciski

Luna Mosciski

1600583123

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework.

Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

This framework was created by Evan You and still it is maintained by his private team members. Vue is of course an open-source framework which is based on MVVM concept (Model-view view-Model) and used extensively in building sublime user-interfaces and also considered a prime choice for developing single-page heavy applications.

Released in February 2014, Vue JS has gained 64,828 stars on Github, making it very popular in recent times.

Evan used Angular JS on many operations while working for Google and integrated many features in Vue to cover the flaws of Angular.

“I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight." - Evan You

#vuejs #vue #vue-with-laravel #vue-top-story #vue-3 #build-vue-frontend #vue-in-laravel #vue.js

Khaitan

Khaitan

1587182280

Create Modals With Tailwind CSS and Vue

Vue.js is awesome, Tailwind CSS is awesome. So why not combine both and create an app? In this video I create a modal using Tailwind CSS! Let’s do it!

  • 0:00 Intro
  • 1:30 Install Tailwind CSS and Tailwind Intellisense
  • 7:24 Create A Button with Tailwind CSS
  • 12:46 Add Toggle with Vue and Background
  • 14:15 Create Modal Box

#vue-js #tailwind-css #css #web-development #javascript