Skip to content

Renders with Props Fed into Lit Template Directive? #3170

Answered by sorvell
waldronmatt asked this question in Q&A
Discussion options

You must be logged in to vote

There are a lot of possibilities here based on what you'd like to do. Stampino is a good option for a lot of use cases. Building it directly into Lit is something we're considering but there are no immediately plans to do so.

Lit can render lots of values including TemplateResults and nodes themselves. And of course, Shadow DOM can render content via slots.

Here's an example showing each of these.

Note that Lit currently doesn't support expressions directly inside template elements.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justinfagnani
Comment options

Answer selected by waldronmatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants