sagalbot/vueable

More Robust Toggling

Opened this issue · 0 comments

There needs to be 3 components:

Vueable

The wrapper for everything. This is basically just one scoped slot, that passes two components: Target and Toggle

Toggle

Same as before, but this will scope the @click handler to just this component:

    return h(this.tag, {
      on: {
        click: this.toggle,
      },
    }, slot);

Target

Remains unchanged.