Skip to content

Scoped slots #69

@ManUtopiK

Description

@ManUtopiK

Is your feature request related to a problem? Please describe.

How to handle scoped slots with MDC syntax ? And how to pass slot props to child components ?

Describe the solution you'd like to see

From this template :

<!-- <MyComponent> template -->
<div>
  <slot :text="greetingMessage" :count="1"></slot>
</div>

To this :

::my-component
#default{text count}
This is a {{ text }} and a {{ count }}
This is an inline :child-component{text=":text" count=":count"}
::

🤔 I'm not convinced.
We should take care about the v-bind shorthand : with the frontmatter. doc

What do you think about ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions