From ab7c6c8d843fef92570f59e0c0b879708b29d068 Mon Sep 17 00:00:00 2001 From: reverend Date: Fri, 31 Jul 2020 23:12:29 +0200 Subject: [PATCH] Providing context and variations of input --- components/01_Atoms/input/input.config.json | 6 ++++- components/01_Atoms/input/input.hbs | 30 ++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/components/01_Atoms/input/input.config.json b/components/01_Atoms/input/input.config.json index 544b7b4..3c65575 100644 --- a/components/01_Atoms/input/input.config.json +++ b/components/01_Atoms/input/input.config.json @@ -1,3 +1,7 @@ { - + "context": { + "label": "Enter your value here", + "placeholder": "A sample value", + "message": "Please fill in anything valuable" + } } \ No newline at end of file diff --git a/components/01_Atoms/input/input.hbs b/components/01_Atoms/input/input.hbs index acb368e..bdc6523 100644 --- a/components/01_Atoms/input/input.hbs +++ b/components/01_Atoms/input/input.hbs @@ -1,10 +1,28 @@ +

Regular with message

- - - Field is required + + + {{message}}
+

Regular without message

- - - Field is required + + +
+

Regular without placeholder

+
+ + + {{message}} +
+

Disabled

+
+ + +
+

Error

+
+ + + {{message}}
\ No newline at end of file