3 ms·
I'd really like a set of elements like this that is truly HTML + CSS. Vanilla. Layer on some _optional_ JS for some enhancements. But this franken <form> eleme
by tbeseda 2y ago
I'd really like a set of elements like this that is truly HTML + CSS. Vanilla. Layer on some _optional_ JS for some enhancements.
But this franken <form> element requires JavaScript to even render. Same for the tooltip, leader, cover, totop, ++ components; all of which can be done with HTML and CSS.
Fine, write your HTML is JS, but that isn't "HTML first".
edit: I stand corrected. the form will render without JS. The tab element in the docs wrapping the form doesn't render.
- sveltecult 2y agoThe form does not need JS. There are two labels black and red "Requires JS". The black one should've been "May Require JS". It is use for the "custom controls" provided by UIkit. But it is not required. Cover, leader, dropdowns and even modals, you can always use the CSS class instead of UIkit custom attributes and toggle it manually via server.
- tbeseda 2y agoAh so the tab component doesn't render without JS. Because I can't see the form render in the docs. Which is in a tab. Tabs can also be plain HTML + CSS. Even easier now with :has
- Frotag 2y agoDaisyUI offers zero-JS components https://daisyui.com/ https://daisyui.com/ I used it for a small form + search result list recently and it works well enough for simple / static stuff. But I think I'll still be reaching for a JS lib first since I'd miss things like inputs-with-autocomplete too much.
- eddd-ddde 2y agoDaisyUI is a blessing when working on qwik projects, since there is an emphasis on eliminating hydration. It would seem that all other libraries want js for something as simple as a drop-down.
- bouncing 2y agoSee also Bulma; you can totally get by without JS for most projects, though again, you'll miss out on the more interactive things.