Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boydjohnson/yew-transition-group
react-transition-group but for yew
https://github.com/boydjohnson/yew-transition-group
yew yew-framework
Last synced: 11 days ago
JSON representation
react-transition-group but for yew
- Host: GitHub
- URL: https://github.com/boydjohnson/yew-transition-group
- Owner: boydjohnson
- License: other
- Created: 2022-05-21T09:22:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T10:34:24.000Z (over 2 years ago)
- Last Synced: 2024-10-12T23:11:56.491Z (about 1 month ago)
- Topics: yew, yew-framework
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# yew-transition-group
Based off of `react-transition-group`.
`react-transition-group` has `Transition`, `CssTransition`, and `TransitionGroup`.
`yew-transition-group` has only `Transition` right now. When I get time, `TransitionGroup` will be implemented. I don't think `CssTransition` is feasible right now.
## Usage
Cargo.toml
```
[dependencies]
yew-transition-group = "0.0.1"
```In view
```rust
html !{
{ "Hello World" }
}
```Where enter is a boolean, controlling when you want the transition to appear, and notification_callback is a `Callback` where you get notified about changes to the `TransitionState` from `Entering` -> `Entered` -> `Exiting` -> `Exited`.
Check out the [example](/examples/transition-example/) for more information.