Skip to content

Support portals #2

@sergeche

Description

@sergeche

A common use-case is to render given fragment somewhere outside of currently rendered tree. For example, add context menu somewhere in parent to maintain proper stacking context. Should support something like this:

<template>
  <p>Lorem ipsum</p>
  <e:portal target={someElem}>
    <submenu animate:in="..." animate:out="..." />
  </e:portal>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions