aboutsummaryrefslogtreecommitdiff
path: root/examples/svg.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'examples/svg.gleam')
-rw-r--r--examples/svg.gleam20
1 files changed, 8 insertions, 12 deletions
diff --git a/examples/svg.gleam b/examples/svg.gleam
index 640867b..93be5e3 100644
--- a/examples/svg.gleam
+++ b/examples/svg.gleam
@@ -46,18 +46,14 @@ pub fn update(model: Model, msg: Msg) -> Model {
// VIEW ------------------------------------------------------------------------
pub fn view(model: Model) -> Element(Msg) {
- div(
- [],
- [
- button(
- [event.on_click(Incr)],
- [plus([attribute.style([#("color", "red")])])],
- ),
- button([event.on_click(Decr)], [minus([])]),
- button([event.on_click(Reset)], [text("Reset")]),
- p([], [text(int.to_string(model))]),
- ],
- )
+ div([], [
+ button([event.on_click(Incr)], [
+ plus([attribute.style([#("color", "red")])]),
+ ]),
+ button([event.on_click(Decr)], [minus([])]),
+ button([event.on_click(Reset)], [text("Reset")]),
+ p([], [text(int.to_string(model))]),
+ ])
}
fn plus(attrs) {