Robin Lindner
Explore posts from serversBuild a Drag & Drop Designer with Solid
I have a major project at the moment.
It's about building a designer for documents (mostly DIN A4 / US Letter - but also labels).
What is the best way to build something like this with SolidJS? With a drag & drop functionality, snapping & co.
And some kind of invisible grid, so that I can save the result of the designer at the end and render it in another service, e.g. to PDF or ZPL.
How would you proceed with something like this? Have you ever built something like this?
6 replies
useContext returns undefined.
Hey I created a Provider and a context to manage figlet fonts.
This provider is just a "singleton"-reference to my FontRegistry.
FontProvider + useFonts:
Child-Component:
For some reason
useContext
returns undefined.
I use Astro for this, but even in client:only
mode it does not work.
Astro page:
1 replies
Modal Implementation
Has anyone ever written a generic component for a modal?
Something lean and not an external UI framework is enough for me. I heard the <portal> component is quite useful for this.
Background is that I want/need to implement a small DSGVO modal.
11 replies
Modals in SolidJS
Is there some proper way implementing modals in solid?
I have a special button component and I want to open a modal on clicking this button.
I read something about
Portal
. Can you help me here :)?
What would you do? Best Practice?4 replies
Theme management with Solid
I would like to have a Dark and Light Mode on my page. For this I use Solid in combination with Astro.
How would you proceed now?
My current status is that I have created a wrapper object "Scaffold" on the Astro page.
Scaffold is a solidjs component which looks like this:
There I import a "signal" for the theme:
15 replies