From a8dcdf6ff61ee6fe2de33dcc1097fde6a2450c8d Mon Sep 17 00:00:00 2001 From: Germain Date: Mon, 21 Aug 2023 12:54:41 +0100 Subject: [PATCH] Add icon button JSDoc --- src/components/IconButton/IconButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/IconButton/IconButton.tsx b/src/components/IconButton/IconButton.tsx index ccca290e..017f1c20 100644 --- a/src/components/IconButton/IconButton.tsx +++ b/src/components/IconButton/IconButton.tsx @@ -35,6 +35,9 @@ type IconButtonProps = JSX.IntrinsicElements["button"] & { indicator?: "default" | "highlight"; }; +/** + * Display an icon as a button. Can render an indicator + */ export const IconButton = forwardRef< HTMLButtonElement, PropsWithChildren