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 (
documentmust exist). - Client-only (no SSR): Put this in a
use clientprovider tree, or use a dynamic import in Next.js. - Should be called before
InterwovenKitProviderrenders (typically in the same component).
Quickstart
This example shows the typical usage pattern. For complete setup
configurations, see Provider Setup.
API
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.