Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeedev committed Mar 5, 2024
1 parent 87615ff commit 7d7b71d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

JSON to HTML UI library.

Referene Guide: [Guide](guide.md)

Made by nikeedev
30 changes: 30 additions & 0 deletions guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Reference Guide:

## Text:

```js
"Hello, world!"
```

or

```js
{
"type": "text",
"text": "Hello, world!"
}
```
You can also use `p` instead `text` in type property, of course you will get same result.

## Button:

```js
{
"type": "button",
"text": "Click me",
"action": (e) => {
alert("You clicked me!");
}
}
```

0 comments on commit 7d7b71d

Please sign in to comment.