Skip to content

Commit 1af8e6c

Browse files
Add middleware documentation
1 parent fe827c2 commit 1af8e6c

19 files changed

Lines changed: 549 additions & 26 deletions

File tree

book/src/compute-position.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ cleanup();
220220

221221
## Options
222222

223-
Passed as a third argument, this is the object to configure the behavior.
223+
Passed as a third argument, this is the struct instance to configure the behavior.
224224

225225
```rust,ignore
226226
compute_position(reference_el, floating_el, ComputePositionConfig::new());
@@ -356,7 +356,6 @@ fn wrapper(reference_el: Element, floating_el: Element, options: Options) -> Com
356356
`compute_position()` returns the following type:
357357

358358
```rust,ignore
359-
360359
pub struct ComputePositionReturn {
361360
pub x: f64,
362361
pub y: f64,

book/src/frameworks/leptos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This will position the floating `Tooltip` element at the bottom center of the `B
5353

5454
### Disabling Transform
5555

56-
By default, the floating element is positioned using `transform` in the `floating_styles` object. This is the most performant way to position elements, but can be disabled:
56+
By default, the floating element is positioned using `transform` in the `floating_styles` struct instance. This is the most performant way to position elements, but can be disabled:
5757

5858
```rust,ignore
5959
use_floating(reference_ref, floating_ref, UseFloatingOptions::default().transform(false.into()));

0 commit comments

Comments
 (0)