Practical Vue Components
As you continue building new projects, you'll find yourself reaching for the same crop of components over and over again. Most websites require modals, dropdowns, tooltips, and more. While you can certainly use a UI framework, let's instead learn how to construct these components (and more) from scratch.
Progress
Series Info
- Episodes
- 7
- Run Time
- 1h 56m
- Difficulty
- Intermediate
- Last Updated
- Jul 22, 2019
- Version
- Latest
Series Episodes
- Episodes (7)
Smooth Scrolling
So the user clicks a link, and the page smoothly scrolls to your desired section. It's a common enough need. Let's wrap this functionality in a reusable Vue component, calledScrollLink.Context Menus
Next up, we'll create a typical context menu that can be referenced anywhere on your site. You've surely seen these on countless sites, including Facebook and Twitter.Show an Element When Another is Hidden
A common need is to display a block of HTML only when another block is hidden from the viewport. In fact, this technique is used in a number of places around the Laracasts website. You'll be happy to hear that it's quite easy to accomplish.Modals and Custom Vue Plugins
Our next practical Vue component is, of course, the ubiquitous modal. In this episode, we'll migrate and enhance the code from the CSS-only modals lesson. Once working, we'll then learn how to extract the code to a custom Vue plugin.Confirmation Dialogs and Buttons
Next up on the agenda is flexible confirmation buttons and dialogs. Among other things, this will offer us a chance to review event dispatchers and promises.Inline SVGs Using Render Functions
Our next practical Vue component offers us an easy way to dynamically load and tweak inline SVGs on the fly.Tabs
Next up, we have the common tabs Vue component. There are a hundred and one different ways to construct these, but let's review one path you might consider.
