From 5e9c7079e10ecb882048f3534f70c035a8a1ba4f Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Wed, 5 Jan 2022 19:21:07 +0100 Subject: [PATCH] docs: fix get started example --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3efc02c..e821fcb 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ import { ..., createButton } from "https://deno.land/x/tui@version/mod.ts"; const componentStyler = compileStyler({ ...tui.styler, + background: "blue", focused: { attributes: ["bold"], background: "green", @@ -89,11 +90,11 @@ let counter = 0; const button = createButton(tui, { label: { get text() { - return counter; + return String(counter); }, align: { - vertical: center, - horizontal: center, + vertical: "center", + horizontal: "center", }, }, rectangle: {