Vojtech Miksu

Results 173 comments of Vojtech Miksu

I am not the biggest fan of using this datastructure-to-tags syntax. I was thinking we could just check the existence of `.ladle/head.html` and automatically inject it into ``. So it...

In our projects, we add `React.useEffect()` into the main [Provider](https://ladle.dev/docs/providers) and use JS to create a style tag and inject it into the head. Or you could use something like...

It doesn't seem to be possible to use Chromatic with anything else than Storybook. There are some similar projects supporting Ladle out of the box: https://github.com/lost-pixel/lost-pixel

> [Single story hoisting](https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy#single-story-hoisting) is the one I missed most This seems pretty arbitrary, why not just to update the default title? > another one is how to inject preview...

Yea, I had a similar issue with [styletron](https://styletron.org/). I had to write a bit hacky code to "retarget" the engine so it starts adding styles to the correct document, you...

> Possible to directly pass in the current story document on globalState or something? I had a version passing it into the `Provider` at one point. Also, there's probably only...

Tried to use `adoptedStylesheets`. It seems you can't grab `` element from the parent and do `iframe.document.adoptedStyleSheets = [styleElement.sheet]`. It throws: ``` Uncaught DOMException: Failed to set the 'adoptedStyleSheets' property...

Yea, I think it would nice to document it here with some examples: https://ladle.dev/docs/width I am also considering to provide some `onIframeChange` callback passed through the `Provider` to simplify the...

Looks nice! I like the second version more since there is a more straightforward connection between the addon button and addon panel itself. Also, I would make the elements and...

There will be some new development when it comes to test automation with Ladle. Not using `storiesOf` though.