Skip to content
Discussion options

You must be logged in to vote

Hi @blangenfeld!

I don't think it's possible now. Currently slots are purely server-driven - slots are rendered on the server, and then base64 encoded and attached to the root element as data-slots attribute.

/**
* Parses the slots from the element's attributes and returns them as a record.
* The slots are parsed from the "data-slots" attribute.
* The slots are converted to a function that returns a div with the innerHTML set to the base64 decoded slot.
*/
const getSlots = (el: HTMLElement): Record<string, () => any> => {
const dataSlots = getAttributeJson(el, "data-slots")
re…

Replies: 1 comment 1 reply

Comment options

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

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