Skip to content

Two examples on how to write "compound components" in Vue 3. They're more popular in the React world but possible to do in Vue also.

Notifications You must be signed in to change notification settings

ktallafus/vue-compound-components

Repository files navigation

Basic Vue 3 demo about writing components like this:

<MyDropdown v-model="myDropdownValue">
  <MyDropdownOption value="hi"/>
  <MyDropdownOption value="hey"/>
  <MyDropdownOption value="hello"/>
</MyDropdown>

In this repository, there are examples for:

This technique is called compound components - see Kent Dodds's original React article

More Vue examples of compound components

About

Two examples on how to write "compound components" in Vue 3. They're more popular in the React world but possible to do in Vue also.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published