Skip to content

Commit dcfb232

Browse files
Add React API (#39)
* Add React module documentation and update external link styling * Tweak order --------- Co-authored-by: Will Eastcott <will@playcanvas.com>
1 parent 9018cc3 commit dcfb232

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

index.html

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,17 @@
620620
border-radius: 4px;
621621
transition: background-color 0.2s;
622622
margin-right: 8px;
623-
width: 145px;
623+
min-width: 145px;
624624
text-align: center;
625625
margin-bottom: 8px;
626626
}
627627

628+
.module-link.external::after {
629+
content: ' ↗';
630+
padding-left: 8px;
631+
vertical-align: middle;
632+
}
633+
628634
.module-link.legacy {
629635
background-color: rgba(77, 166, 255, 0.3);
630636
color: rgba(255, 255, 255, 0.8);
@@ -786,20 +792,20 @@ <h3>📖 Engine</h3>
786792
<a href="./engine/" class="module-link">v2.x API (current)</a>
787793
<a href="./engine-v1/" class="module-link legacy">v1.x API (legacy)</a>
788794
</li>
789-
<li class="module-item" data-name="web-components">
790-
<h3>📖 Web Components</h3>
791-
<p>Custom HTML elements for building declarative PlayCanvas applications.</p>
792-
<a href="./web-components/" class="module-link">View API Reference</a>
793-
</li>
794795
<li class="module-item" data-name="editor">
795796
<h3>📖 Editor</h3>
796797
<p>API for interfacing with the PlayCanvas Editor.</p>
797798
<a href="./editor/" class="module-link">View API Reference</a>
798799
</li>
799-
<li class="module-item" data-name="observer">
800-
<h3>📖 Observer</h3>
801-
<p>Reactive data observation and binding system.</p>
802-
<a href="./observer/" class="module-link">View API Reference</a>
800+
<li class="module-item" data-name="react">
801+
<h3>📖 React</h3>
802+
<p>Use React’s declarative power to build PlayCanvas apps with components, hooks, and JSX.</p>
803+
<a href="https://playcanvas-react.vercel.app/docs/api" class="module-link external">View API Reference</a>
804+
</li>
805+
<li class="module-item" data-name="web-components">
806+
<h3>📖 Web Components</h3>
807+
<p>Custom HTML elements for building declarative PlayCanvas applications.</p>
808+
<a href="./web-components/" class="module-link">View API Reference</a>
803809
</li>
804810
<li class="module-item" data-name="pcui">
805811
<h3>📖 PCUI</h3>
@@ -811,6 +817,11 @@ <h3>📖 PCUI Graph</h3>
811817
<p>Graph user interface components for creating node-based editors.</p>
812818
<a href="./pcui-graph/" class="module-link">View API Reference</a>
813819
</li>
820+
<li class="module-item" data-name="observer">
821+
<h3>📖 Observer</h3>
822+
<p>Reactive data observation and binding system.</p>
823+
<a href="./observer/" class="module-link">View API Reference</a>
824+
</li>
814825
</ul>
815826
</section>
816827
</div>
@@ -889,4 +900,4 @@ <h3>📖 PCUI Graph</h3>
889900
});
890901
</script>
891902
</body>
892-
</html>
903+
</html>

0 commit comments

Comments
 (0)