aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/buttons
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/buttons')
-rw-r--r--src/components/atoms/buttons/button-link.tsx6
-rw-r--r--src/components/atoms/buttons/button.tsx6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/components/atoms/buttons/button-link.tsx b/src/components/atoms/buttons/button-link.tsx
index 77a7f7b..906fa76 100644
--- a/src/components/atoms/buttons/button-link.tsx
+++ b/src/components/atoms/buttons/button-link.tsx
@@ -1,5 +1,5 @@
import Link from 'next/link';
-import { FC } from 'react';
+import { FC, ReactNode } from 'react';
import styles from './buttons.module.scss';
export type ButtonLinkProps = {
@@ -8,6 +8,10 @@ export type ButtonLinkProps = {
*/
'aria-label'?: string;
/**
+ * The button link body.
+ */
+ children: ReactNode;
+ /**
* Set additional classnames to the button link.
*/
className?: string;
diff --git a/src/components/atoms/buttons/button.tsx b/src/components/atoms/buttons/button.tsx
index 545c5c5..a6eef8b 100644
--- a/src/components/atoms/buttons/button.tsx
+++ b/src/components/atoms/buttons/button.tsx
@@ -1,8 +1,12 @@
-import { FC, MouseEventHandler } from 'react';
+import { FC, MouseEventHandler, ReactNode } from 'react';
import styles from './buttons.module.scss';
export type ButtonProps = {
/**
+ * The button body.
+ */
+ children: ReactNode;
+ /**
* Set additional classnames to the button wrapper.
*/
className?: string;