Skip to content

Unable to use 'Choose' directive from Lit #20961

@warrenbuckley

Description

@warrenbuckley

Which Umbraco version are you using?

16.3.4

Bug summary

I am writing a custom Block Preview and would like to use the choose directive from Lit
https://lit.dev/docs/templates/directives/#choose

However it seems that it is never exported and available to use
import { html, customElement, LitElement, property, css, choose } from '@umbraco-cms/backoffice/external/lit';

Specifics

No response

Steps to reproduce

Try writing a WebComponent that uses the external Lit library used in Umbraco rather than installing and including it your own code and then try to import the choose directive from @umbraco-cms/backoffice/external/lit

Expected result / actual result

That I am able to use the choose directive in the render method of the WebComponent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions