Skip to content

Commit 6d96b95

Browse files
committed
chore: add doc comments
1 parent 677636f commit 6d96b95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Shared/Components/Button/Button.component.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ const ButtonElement = ({
104104
* <Button text="Hello World" showTippy tippyContent="Tippy content" />
105105
* ```
106106
*
107+
* @example With onClick
108+
* ```tsx
109+
* <Button text="Hello World" onClick={noop} />
110+
* ```
111+
*
112+
* @example Link component
113+
* ```tsx
114+
* <Button component={ButtonComponentType.link} linkProps={{ to: '#' }} />
115+
* ```
107116
*/
108117
const Button = ({
109118
dataTestId,

0 commit comments

Comments
 (0)