Effortlessly forward slots to child components in Vue 3 applications.
Forked from https://github.com/jessegall/vue-forward-slots, this version offers a few additional features:
- Automatically pass-through attributes to the wrapped component
- New
inherit-attrs
prop for theForwardSlots
component, default is true - Support RegExp for
only
andexcept
props or as array items for either - Support wildcard matches at the start or end of items, e.g.
:only="['item*']"
or:except="['*prepend']"
- Extensive tests run against the library via Vitest and Vue Test Utils
- Easily forward all slots or specific slots to child components
- Simple and declarative syntax
For full information on installing and using this package, please visit the evoMark Vue Forward Slots page on our website.