Update README.md
This commit is contained in:
parent
543e14b774
commit
e314061943
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
@ -27,6 +27,14 @@ It's
|
||||||
; <div></div>
|
; <div></div>
|
||||||
; <div></div>
|
; <div></div>
|
||||||
|
|
||||||
|
(script :defer t)
|
||||||
|
|
||||||
|
; => <script defer></script>
|
||||||
|
|
||||||
|
(script :defer nil)
|
||||||
|
|
||||||
|
; => <script></script>
|
||||||
|
|
||||||
(define-element view-more ()
|
(define-element view-more ()
|
||||||
(a props
|
(a props
|
||||||
"View More"))
|
"View More"))
|
||||||
|
@ -35,14 +43,6 @@ It's
|
||||||
|
|
||||||
; <a href="/detail" class="m-1">View More</a>
|
; <a href="/detail" class="m-1">View More</a>
|
||||||
|
|
||||||
(define-element custom-button (variant)
|
|
||||||
(button `(:class ,variant ,@props)
|
|
||||||
children))
|
|
||||||
|
|
||||||
(custom-button :type "submit" :variant "big" :onclick "doSomething()"
|
|
||||||
"Submit")
|
|
||||||
|
|
||||||
; <button class="big" type="submit" onclick="doSomething()">Submit</button>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- Improved:
|
- Improved:
|
||||||
|
|
Loading…
Reference in a new issue