Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Forms with Vue.js

You're reading from   Building Forms with Vue.js Patterns for building and scaling complex forms with great UX

Arrow left icon
Product type Paperback
Published in Oct 2019
Publisher Packt
ISBN-13 9781839213335
Length 108 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Marina Mosti Hernandez Mosti Marina Mosti Hernandez Mosti
Author Profile Icon Marina Mosti Hernandez Mosti
Marina Mosti Hernandez Mosti
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Setting up the Demo Project 2. A Form in its Simplest Form FREE CHAPTER 3. Creating Reusable Form Components 4. Input Masks with v-mask 5. Input Validation with Vuelidate 6. Moving to a Global State with Vuex 7. Creating Schema-Driven Forms 8. Other Books You May Enjoy

Getting started using Bootstrap

Let's begin by adding Bootstrap 4 as a dependency to our project, so we won't have to think about design and can focus on the functionality of our forms. 

Bootstrap is a popular open source toolkit that gives us some predefined classes and styles so that we can make our app look nice without having to worry much about styles.

To get Bootstrap installed and set up for our project, follow these steps:

  1. Open up the Terminal to your project's folder, and install the dependency with the following command:
> npm install bootstrap
  1. Awesome! This adds the package to our node_modules folder and package.json. Now, go ahead and import the necessary styles into src/main.js. Use the following command to do so:
import 'bootstrap/dist/css/bootstrap.min.css';

We're not going to be using any of Bootstrap's scripts, so...

You have been reading a chapter from
Building Forms with Vue.js
Published in: Oct 2019
Publisher: Packt
ISBN-13: 9781839213335
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image