Demonstrate components, slots and parameters in the demo
This commit is contained in:
parent
27d27a6955
commit
b3015929a4
@ -0,0 +1,5 @@
|
||||
div {style = "padding: 3em; background-color: #8eb; margin: 1em;"}
|
||||
h1
|
||||
optional slot :title
|
||||
div {style = "padding: ${$padding}em; background-color: #eb8;"}
|
||||
slot :main
|
@ -6,3 +6,12 @@ html
|
||||
body
|
||||
h1
|
||||
@hello{$name}
|
||||
TestComponent {padding=1}
|
||||
:title
|
||||
"Title slot"
|
||||
:main
|
||||
"Main slot"
|
||||
|
||||
hr
|
||||
TestComponent {padding=4}
|
||||
"No title slot on this one!"
|
||||
|
Loading…
Reference in New Issue
Block a user