Repository navigation
feat: add radi/webcomponent adapter - #70
Merged
Merged
Conversation
Marcisbee
marked this pull request as ready for review
November 12, 2026 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
webcomponentfromradi/webcomponentto register existing Radi components as native custom elements. Typed attribute converters accept String, Number, Boolean, JSON.parse, and custom functions. Declared attributes and callbacks expose DOM properties, preserving JavaScript values and pre-registration assignments. Explicit callback mappings emit bubbling, composed CustomEvents while retaining JavaScript callbacks and return values.Includes package exports, declarations, README usage, and the radi.js.org Web Components guide, API reference, navigation, framework examples, and generated agent-readable documentation.
Verified six direct-browser scenarios and real React 19.2.0, Vue 3.5.45, and Angular 22.2.5 integrations in Chromium: typed values, custom events, state-preserving updates, and unmount cleanup. The 315-test runtime suite, npm build, strict TypeScript consumer checks, and documentation build/browser checks passed. Current with origin/master.
Rendering uses light DOM and replaces children; consumers provide an empty host. Disconnect/reconnect resets local state. SSR/hydration, cross-document adoption, Firefox, and WebKit are unverified. This does not claim full HTML conformance; existing Radi host markup is unchanged.