1 unstable release
0.7.0 | Jul 25, 2019 |
---|
#54 in #dashboard
Used in sauron-native
150KB
3.5K
SLoC
itui
Itui is a fork of tui-rs, with a focus of providing the basic building block of writing text based UI. Itui's goal is to provide a parallel text-base widgets for sauron-native. The complex widgets(such as charts, canvas, guages) of tui-rs has been removed in order to focus on most commonly used widgets in a GUI and html.
Goal
- be a backend for sauron-native
- widgets can trigger events
- events
- mouse events
- click
- drag
- hover
- keyboard events
- input event
- mouse events
Text base button with hover/click effect
Rounded button
╭──────╮ ▄▄▄▄▄▄▄▄ │ btn │ █ btn ██ ╰──────╯ ▀▀▀▀▀▀▀▀
Flat buttons
┌──────┐ ▄▄▄▄▄▄▄▄ │ btn01│ █btn01██ └──────┘ ▀▀▀▀▀▀▀▀
Tabs:
╭──────╮______________
│ tab1 │ tab2 │ tab2 │
└──────┴──────┘──────┘
License
Dependencies
~2–12MB
~133K SLoC