trainorpj / awesome-vue-slots

Awesome list of Vue components/resources with scoped slots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Awesome Vue Slots

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!

What are slots?

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!

What are scoped slots? πŸ”¬

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:

Videos πŸ“Ί

Articles πŸ“˜

Examples πŸ’»

Components

About

Awesome list of Vue components/resources with scoped slots