Skip to content
HELiX

Framework Integration

apps/docs/src/content/docs/framework-integration Click to copy
Copied! apps/docs/src/content/docs/framework-integration

HELIX components are standard custom elements — they work in any framework or no framework at all. This section covers the specific patterns and gotchas for each environment.

Web components are framework-agnostic by design, but frameworks differ in:

  • Event binding — React uses synthetic events; Vue/Angular have their own binding syntax
  • Boolean attributes — Frameworks handle disabled, required, etc. differently
  • Form integration — React Controlled Components don’t interop with ElementInternals the same way
  • TypeScript types — JSX type declarations differ from Angular template types
  • SSR — Custom element registration is browser-only; each framework handles SSR differently
FrameworkUse Case
ReactReact 18+ (raw web components)
React Wrappers@helixui/react — typed props, no addEventListener boilerplate
Next.js 15Next.js 15 App Router, SSR, Server Actions
VueVue 3, Nuxt
AngularAngular 16+
SvelteSvelte 5, SvelteKit
AstroAstro 5, Starlight
Plain HTMLCDN / no-build setup
DrupalDrupal CMS / Twig templates

The raw web component / framework guides (HTML, Angular, Vue, Svelte, Astro, Drupal, Next.js when used without wrappers) install the core library directly:

Terminal window
npm install @helixui/library

The React Wrappers guide uses the auto-generated React-specific package, which brings @helixui/library in as a dependency:

Terminal window
npm install @helixui/react

Or load the core library via CDN — see the Plain HTML guide.