Skip to content

Commit de608bd

Browse files
committed
feat: update browser-rs docs
1 parent 56cc58a commit de608bd

3 files changed

Lines changed: 33 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/browser-rs.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{#tab name="Yew" }}
66

77
<a
8-
href="https://github.com/opensass/browser"
8+
href="https://github.com/opensass/browser-rs"
99
class="mdbook-button"
1010
target="_blank"
1111
rel="noopener noreferrer"
@@ -39,7 +39,36 @@ os add browser-rs yew
3939

4040
{{#tab name="Dioxus"}}
4141

42-
TODO
42+
<a
43+
href="https://github.com/opensass/browser-rs"
44+
class="mdbook-button"
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
title="Edit this component on GitHub"
48+
role="button"
49+
aria-label="Edit Component on GitHub">Edit Component
50+
</a>
51+
52+
{{#include ../../browser-rs/DIOXUS.md}}
53+
54+
## Usage
55+
56+
<iframe
57+
src="https://browser-dio.netlify.app"
58+
title="Browser RS Dioxus Examples"
59+
loading="lazy"
60+
allowfullscreen
61+
aria-label="Live Dioxus example using Browser RS"
62+
>
63+
</iframe>
64+
65+
## CLI Usage
66+
67+
You can import Browser RS directly into your project to customize and modify it using the [opensass cli](https://github.com/opensass/cli):
68+
69+
```sh
70+
os add browser-rs dio
71+
```
4372

4473
{{#endtab}}
4574

0 commit comments

Comments
 (0)