# egui-uix
A collection of custom UI components for [egui](https://github.com/emilk/egui), the immediate mode GUI library for Rust.
## Installation
Add `egui-uix` to your `Cargo.toml`:
```toml
[dependencies]
egui-uix = "0.1.0"
egui = "0.33" # Ensure you are using a compatible version of egui
```
## Usage
### Toggle Switch
```rust
use egui_uix::components::toggle::Toggle;
// In your update loop:
ui.add(Toggle::new(&mut self.is_on, "Enable feature"));
```
## Examples
To run the demo example:
```bash
cargo run --example demo
```
## Development
Run checks:
```bash
./check.sh
```