From 97282fd1aff8b4d36387d0055bcd0f7b93803556 Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 1 Aug 2020 10:27:36 +0200 Subject: [PATCH] Context for the button --- components/01_Atoms/button/button.config.json | 13 ++++++++++++- components/01_Atoms/button/button.hbs | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/01_Atoms/button/button.config.json b/components/01_Atoms/button/button.config.json index 4eb7c3f..4d8fe77 100644 --- a/components/01_Atoms/button/button.config.json +++ b/components/01_Atoms/button/button.config.json @@ -1,3 +1,14 @@ { - + "title": "Button", + "context":{ + "text": "Click me" + }, + "variants": [ + { + "name": "Cancel Button", + "context": { + "modifier": "--cancel" + } + } + ] } \ No newline at end of file diff --git a/components/01_Atoms/button/button.hbs b/components/01_Atoms/button/button.hbs index be4303f..682867c 100644 --- a/components/01_Atoms/button/button.hbs +++ b/components/01_Atoms/button/button.hbs @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file