remark-mdc icon indicating copy to clipboard operation
remark-mdc copied to clipboard

Scoped slots

Open ManUtopiK opened this issue 1 year ago • 3 comments

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"}
::

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

What do you think about ?

ManUtopiK avatar Nov 17 '23 02:11 ManUtopiK