Skip to content

Commit

Permalink
docs: fix get started example
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Jan 5, 2022
1 parent e09d645 commit 5e9c707
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ import { ..., createButton } from "https://deno.land/x/tui@version/mod.ts";

const componentStyler = compileStyler<TuiStyler>({
...tui.styler,
background: "blue",
focused: {
attributes: ["bold"],
background: "green",
Expand All @@ -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: {
Expand Down

0 comments on commit 5e9c707

Please sign in to comment.