Skip to main content

Overview

  • Injects CSS into InterwovenKit’s Shadow DOM by appending a <style> element.
  • Required for correct visual rendering. Must be called before rendering InterwovenKit components.
  • Call once at app startup in your top-level Providers component.
  • Browser-only (requires document).

Prerequisites

  • Must be called in a browser environment (document must exist).
  • Client-only (no SSR): Put this in a use client provider tree, or use a dynamic import in Next.js.
  • Should be called before InterwovenKitProvider renders (typically in the same component).

Quickstart

This example shows the typical usage pattern. For complete setup configurations, see Provider Setup.

API

Injects the provided CSS string into InterwovenKit’s Shadow DOM. The css parameter should be a string containing CSS rules. Returns void.

Notes

  • Each call appends a new <style> element to the Shadow DOM.
  • For complete setup configurations, see Provider Setup.