Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

JSX slot support #100

@b12f

Description

@b12f

As mentioned in #99, I'd like to add JSX slot support. Would you be all right with the following syntax:

        {/** @slot Use this slot header */}
        <slot name="header"></slot>

or alternatively

        {/** 
           @slot Use this slot header
         */}
        <slot name="header"></slot>

Also, would you want me to add this in script-handlers/slotHandler.ts, or split that file into a jsSlotHandler.ts and jsxSlotHandler.ts? Cause the jsx checks might get a bit larger since they could occur anywhere in the component. In fact, we might even have to check called functions, dependencies and mixins.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions