From 25f973f92b75e551f8960c8c156bd14ed23639c3 Mon Sep 17 00:00:00 2001 From: Mario Souto <13791385+omariosouto@users.noreply.github.com> Date: Fri, 24 Dec 2021 13:15:39 -0300 Subject: [PATCH] feat: add link support to button component --- lib/components/box/box-base.tsx | 4 ++++ lib/components/button/button.stories.mdx | 22 ++++++++++++++++++++++ lib/components/button/button.tsx | 20 ++++++++++++++++++-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/lib/components/box/box-base.tsx b/lib/components/box/box-base.tsx index 116d6a5..de526f9 100644 --- a/lib/components/box/box-base.tsx +++ b/lib/components/box/box-base.tsx @@ -10,12 +10,14 @@ interface BoxProps { id?: string; name?: string; value?: string; + target?: string; placeholder?: string; children?: React.ReactNode; className?: string; styleSheet?: StyleSheet; // eslint-disable-next-line @typescript-eslint/no-explicit-any ref?: Ref; + onMouseDown?: unknown; onClick?: unknown; } @@ -128,8 +130,10 @@ BoxBase.defaultProps = { value: undefined, placeholder: undefined, className: '', + target: '', name: '', id: '', ref: undefined, onClick: undefined, + onMouseDown: undefined, }; diff --git a/lib/components/button/button.stories.mdx b/lib/components/button/button.stories.mdx index 203e5d9..6c7bfc6 100644 --- a/lib/components/button/button.stories.mdx +++ b/lib/components/button/button.stories.mdx @@ -61,3 +61,25 @@ Button is the component that you use, for get user taps and clicks. {(args) =>