Skip to main content

Server-side UI Components

··

JS #

I think that this whole trend (of UI components) started with React. Even so there were components before, like jQuery UI and in desktop and mobile applications, it is still fair to say that only with React concept got mainstream (in web development).

All JS UI components first of all meant for client-side. But all modern frameworks (React, Solid, Qwik etc.) support server-side rendering. See Components for Web.

With one exception - Astro.

Astro #

Astro components is the only server-side UI components. Even so there are not much pure Astro components:

I think this is because, Astro makes it very easy to use any other frontend framework, so there is no strong need for pure Astro components.

WebComponents #

I have to mention WebComponents…

Ruby #

I wrote about Rails UI components before.

PHP #

Laravel #

Component libraries:

  • bladewindui - A collection of over 30 easy-to-customize but elegantly designed blade UI components for your Laravel projects.
  • maryUI - gorgeous Laravel Blade UI Components made for Livewire 3 and styled around daisyUI + Tailwind
  • DashUI offers a suite of UI components, all inspired by Shopify Polaris, exclusively crafted with TailwindCSS, Laravel Blade and Javascript.

Related:

  • TALL stack - Tailwind, Alpine.js, Laravel, and Livewire. A full-stack development solution, built by Laravel community members.
  • laravelviews - Laravel package to create beautiful common views like data tables for the TALL stack.
  • Blade UI Kit is a set of renderless components to utilise in your Laravel Blade views. In all essence, it’s a collection of useful utilities, connecting the dots between different parts of the TALL stack
  • Laravel Mix extension which lets you use blade components like Vue’s single file components.
  • inertia. Create modern single-page React, Vue, and Svelte apps using classic server-side routing. Works with any backend β€” tuned for Laravel.

Symfony #

With Symfony and Twig it is also possible to create components. I didn’t find component libraries though.

Elixir #

Component libraries:

Storybook-like:

Python #

In Python it seens idea haven’t got mainstream yet (or I didn’t find good examples):

Conclusions and ideas #

Read more: Rails UI components, Components for Web