Skip to content

Commit 7a5b507

Browse files
committed
docs: place demo on top
1 parent cbcc39f commit 7a5b507

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This crate provides a stateful widget `ListView` implementation for `Ratatui`.
1010
The associated `ListState`, offers functionalities such as navigating to the next and previous items.
1111
The list view support both horizontal and vertical scrolling.
1212

13+
![](https://raw.githubusercontent.com/preiter93/tui-widget-list/main/examples/tapes/variants.gif?v=1)
14+
1315
### Configuration
1416
The `ListView` can be customized with the following options:
1517
- `ListView::scroll_axis`: Vertical or horizontal scrolling.
@@ -71,10 +73,6 @@ match event::read()? {
7173

7274
For more examples see [tui-widget-list](https://github.com/preiter93/tui-widget-list/tree/main/examples).
7375

74-
### Demo
75-
76-
![](https://raw.githubusercontent.com/preiter93/tui-widget-list/main/examples/tapes/variants.gif?v=1)
77-
7876
### Documentation
7977
[docs.rs](https://docs.rs/tui-widget-list/)
8078

examples/tapes/variants.gif

26.2 KB
Loading

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//! The associated `ListState`, offers functionalities such as navigating to the next and previous items.
1111
//! The list view support both horizontal and vertical scrolling.
1212
//!
13+
//!![](https://raw.githubusercontent.com/preiter93/tui-widget-list/main/examples/tapes/variants.gif?v=1)
14+
//!
1315
//! ## Configuration
1416
//! The `ListView` can be customized with the following options:
1517
//! - `ListView::scroll_axis`: Vertical or horizontal scrolling.
@@ -71,10 +73,6 @@
7173
//!
7274
//! For more examples see [tui-widget-list](https://github.com/preiter93/tui-widget-list/tree/main/examples).
7375
//!
74-
//! ## Demo
75-
//!
76-
//!![](https://raw.githubusercontent.com/preiter93/tui-widget-list/main/examples/tapes/variants.gif?v=1)
77-
//!
7876
//! ## Documentation
7977
//! [docs.rs](https://docs.rs/tui-widget-list/)
8078
//!

0 commit comments

Comments
 (0)