We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677636f commit 6d96b95Copy full SHA for 6d96b95
src/Shared/Components/Button/Button.component.tsx
@@ -104,6 +104,15 @@ const ButtonElement = ({
104
* <Button text="Hello World" showTippy tippyContent="Tippy content" />
105
* ```
106
*
107
+ * @example With onClick
108
+ * ```tsx
109
+ * <Button text="Hello World" onClick={noop} />
110
+ * ```
111
+ *
112
+ * @example Link component
113
114
+ * <Button component={ButtonComponentType.link} linkProps={{ to: '#' }} />
115
116
*/
117
const Button = ({
118
dataTestId,
0 commit comments