Overview
Learn how SwiftUI.js maps SwiftUI-inspired APIs to a practical React component system.
SwiftUI.js Documentation
SwiftUI.js is a React component library that borrows SwiftUI's mental model without pretending the web is iOS.
Use these docs to understand:
- how to install the package cleanly
- how layout and alignment concepts map onto the DOM
- how responsive behavior is expressed through tokens and composition
- which parts of the system are aligned, adapted, partial, or still planned
Start Here
If you are evaluating the library for the first time, begin with Getting Started.
Then open the kitchensink demo to see the same package used as an integrated app surface instead of isolated examples.
After that, move into the concept guides:
Maturity
Production-ready here means the foundation is stable enough for real app use: documented, tested, and predictable in the browser. It does not mean every SwiftUI concept has a one-to-one web equivalent.
alignedmeans the API and behavior map closely to SwiftUI intent and are ready to use as documented.adaptedmeans the feature keeps the SwiftUI mental model but uses web-native behavior where the platform differs.partialmeans the concept is useful and shipped, but some related behavior, edge cases, or companion APIs are still in progress.plannedmeans the idea is part of the roadmap, not a promise of current parity.
When a feature is marked anything other than aligned, the docs should say what is different so users can make an informed call.
What Lives Here
The public docs app owns product-level guidance and conceptual documentation.
Component-level docs remain colocated with each component under packages/ui/src/components/**/**.docs.mdx, which keeps implementation, stories, and docs aligned as the library evolves.
The kitchensink route lives in the docs app so every static docs deployment also includes a working product-style demo.