Skip to content

Commit bb4ce0f

Browse files
Add some Yew documentation
1 parent ca6e8de commit bb4ce0f

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Rust Floating UI is available for these Rust frameworks:
1616

1717
- [DOM](./packages/dom) ([`web-sys`](https://rustwasm.github.io/wasm-bindgen/web-sys/index.html))
1818
- [Leptos](./packages/leptos)
19+
- [Yew](https://yew.rs/)
1920

2021
The following frameworks are under consideration:
2122

2223
- [Dioxus](https://dioxuslabs.com/)
23-
- [Yew](https://yew.rs/)
2424

2525
## Examples
2626

@@ -30,10 +30,12 @@ Each framework has an implementations of the [Floating UI tutorial](https://floa
3030

3131
- [DOM](./packages/dom/example)
3232
- [Leptos](./packages/leptos/example)
33+
- [Yew](./packages/yew/example)
3334

3435
Additionally, implementations of [Floating UI tests](https://github.com/floating-ui/floating-ui/tree/master/packages/dom/test) are more complex examples:
3536

3637
- [Leptos](./packages/leptos/tests)
38+
- [Yew](./packages/yew/tests)
3739

3840
## Documentation
3941

@@ -45,6 +47,7 @@ Documentation for the crates is available on [Docs.rs](https://docs.rs/):
4547
- [`floating-ui-dom`](https://docs.rs/floating-ui-dom/latest/floating_ui_dom/)
4648
- [`floating-ui-leptos`](https://docs.rs/floating-ui-leptos/latest/floating_ui_leptos/)
4749
- [`floating-ui-utils`](https://docs.rs/floating-ui-utils/latest/floating_ui_utils/)
50+
- [`floating-ui-yew`](https://docs.rs/floating-ui-yew/latest/floating_ui_yew/)
4851

4952
## Credits
5053

book/src/frameworks/yew.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
# Yew
22

3+
This package provides [Yew](https://yew.rs/) bindings for `floating-ui-dom` - a library that provides anchor positioning for a floating element to position it next to a given reference element.
4+
5+
## Installation
6+
7+
```shell
8+
cargo add floating-ui-yew
9+
```
10+
11+
- [View on crates.io](https://crates.io/crates/floating-ui-yew)
12+
- [View on docs.rs](https://docs.rs/floating-ui-yew/latest/floating_ui_yew/)
13+
- [View source](https://github.com/RustForWeb/floating-ui/tree/main/packages/yew)
14+
15+
## Usage
16+
317
TODO

book/src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Rust Floating UI is available for the following frameworks:
1414

1515
- [DOM (`web-sys`)](https://rustwasm.github.io/wasm-bindgen/web-sys/index.html)
1616
- [Leptos](https://leptos.dev/)
17+
- [Yew](https://yew.rs/)
1718

1819
The following frameworks are under consideration:
1920

2021
- [Dioxus](https://dioxuslabs.com/)
21-
- [Yew](https://yew.rs/)
2222

2323
## Smart Anchor Positioning
2424

0 commit comments

Comments
 (0)