Context for the button

This commit is contained in:
reverend 2020-08-01 10:27:36 +02:00
parent d90646c9d0
commit 97282fd1af
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,14 @@
{
"title": "Button",
"context":{
"text": "Click me"
},
"variants": [
{
"name": "Cancel Button",
"context": {
"modifier": "--cancel"
}
}
]
}

View File

@ -1 +1 @@
<button class="LP-Button">Click Me</button>
<button class="LP-Button LP-Button{{modifier}}">Click Me</button>