Kong / kongponents

🦍 Kong Vue Component Library
https://kongponents.konghq.com
Apache License 2.0
121 stars 19 forks source link

Which components can handle SSR? #2263

Closed luminarious closed 6 days ago

luminarious commented 6 days ago

Hey! Nuxt projects tend to heavily rely on SSR and I am researching UI kits for a project. Kongponents overall seem to have very nice docs and a nice API.

adamdehaven commented 6 days ago

Kongponents were originally designed for use within client-side rendered Vue apps. With the latest 9.x release, most components are now SSR-compatible, with a few exceptions.

Primarily, KTable and KCatalog are not SSR-compatible, partially due to their internal data fetching.

luminarious commented 6 days ago

Thank you for the swift reply, that's close to what I was assuming.

It's almost like the data table could be decoupled into a renderless fetcher component (or handled manually in Nuxt) and a purely presentational table that would work in static cases as well (no JS needed at all unless client-side sorting or filtering is enabled, suitable for nuxt-island)

adamdehaven commented 6 days ago

a purely presentational table

This is the plan; the table just outputs the data it's given (and/or slotted)