An awesome list of components and resources for vue slots.
Note: This is this is heavily inspired by awesome-react-render-props by Jared Palmer. Thanks Jared!
PRs welcome!
Vue supports slots, which provide a way distribute content between components. They're an outstanding way to make your components truly reusable.
๐ Read the documentation for motivation and overview!
As of Vue version 2.1.0, scoped slots extend the capability of slots. One can now pass a template to a slot; the template is rendered in the parent scope, but it has access to child data.
This is a more advanced pattern, but that doesn't mean you can't learn them!
Note: We'll use a ๐ฌ to indicate items that have to do with scoped slot
Here's some material to help motivate scoped slots:
- ๐ Scoped Slots Documentation
- ๐ฆ Scoped slots are vue's version of render props.
- ๐ค Full Stack Radio: Evan You - Advanced Vue Component Design
- Named Slots in a Nutshell by Laracasts
- ๐ต Place Content in Components with Vue Slots by John Lindquist
- ๐ต Create Layouts with Named Vue Slots by John Lindquist
- ๐ฌ Scoped Slots by Laracasts
- ๐ฌ ๐ต Pass Props Between Components with Vue Slot Scope by John Lindquist
- Intro to Vue.js: Components, Props, and Slots by Sarah Drasner
- Creating Reusable Transitions in Vue by Cristi Jora
- ๐ฌ Getting Your Head Around Vue.js Scoped Slots by Anthony Gore
- ๐ฌ Understanding Scoped Slots in Vue.js by Cristi Jora
- ๐ฌ Getting Your Head Around Vue.js Scoped Slots by Anthony Gore
- ๐ฌ Mouse Position Example by Darren Jennings
- ๐ฌ vue-table-component
- ๐ฌ vue-slider-component
- ๐ฌ vue-tweezing
- ๐ฌ vue-scrollview
- ๐ฌ vue-countdown