I would like to use Hilla React components in a non-Hilla project. This is just a React frontend project. Is it possible to completely disable the default theme (Lumo) for all components? I need to be able to write the theme from scratch.
Ideally, is there a way to simply use a component without any extra features? It seems that, as soon as a Hilla component is rendered, a bunch of stuff is added to the head.
I tried removing all elements in the head by [id^="lumo-"]
, but now the overlay always shows above the input, even when there is space below:
useEffect(
(): void => {
document.head.querySelectorAll('[id^="lumo-"]')
.forEach((element: Element): void => {
element.remove();
});
},
[]
);
Thank you.