From a6388eb04e8255bb13d1f11c46611b6e58c38d09 Mon Sep 17 00:00:00 2001 From: Pavithra Kodmad Date: Mon, 14 Mar 2022 18:14:11 +1100 Subject: [PATCH 1/3] Add disabled styles to counter and add storybook --- src/Button/Button2.stories.tsx | 15 ++++++++++++++- src/Button/styles.ts | 20 ++++++++++++++++---- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/Button/Button2.stories.tsx b/src/Button/Button2.stories.tsx index 033030ddb7d..9f8ef960f63 100644 --- a/src/Button/Button2.stories.tsx +++ b/src/Button/Button2.stories.tsx @@ -25,6 +25,12 @@ export default { type: 'radio', options: ['small', 'medium', 'large'] } + }, + disabled: { + control: { + type: 'boolean', + default: false + } } } } as Meta @@ -151,9 +157,16 @@ export const blockButton = ({...args}: ButtonProps) => { ) } -export const disabledButton = ({...args}: ButtonProps) => { +export const DisabledButton = ({...args}: ButtonProps) => { + const [count, setCount] = useState(0) return ( <> + + +