Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz authored Oct 23, 2023
1 parent 93a8b8b commit 02373d7
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,14 @@

<br>

```rs
Theme {
Button { onclick: |_| log::info!("clicked!"), "Click me!" }

Icon { kind: IconKind::Home, is_filled: true, size: 100. }

TextButton { onclick: |_| log::info!("clicked!"), "Click me!" }

TabRow {
onselect: |idx| log::info!("{}", idx),
tabs: cx
.bump()
.alloc([
render!(Tab { "Tab 1" }),
render!(Tab { "Tab 2" }),
render!(Tab { "Tab 3" }),
])
}

TextField {
label: "Text field",
value: "{value}",
onchange: move |event: FormEvent| value.set(event.value.clone())
}
}
```

## Installation
Dioxus-material currently depends on the latest Dioxus git version.
This crate currently depends on the latest Dioxus git version.

```sh
cargo install dioxus-material --git https://github.com/matthunz/dioxus-material
```

## Lookbook
This crate uses [lookbook](https://github.com/matthunz/lookbook) for component previews and testing.
You can check out the [live version](https://dioxus-material.netlify.app/dioxus_material/)
or run it yourself by running `dx serve --features lookbook`.

0 comments on commit 02373d7

Please sign in to comment.