From f4c3bfbe65b9f14274ab642763f691d93a2f3acc Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Sat, 22 Jul 2023 13:13:55 +0300 Subject: [PATCH] Create Icon Button component --- src/components/IconButton/IconButton.jsx | 12 ++++++++++++ src/components/IconButton/index.jsx | 1 + 2 files changed, 13 insertions(+) create mode 100644 src/components/IconButton/IconButton.jsx create mode 100644 src/components/IconButton/index.jsx diff --git a/src/components/IconButton/IconButton.jsx b/src/components/IconButton/IconButton.jsx new file mode 100644 index 00000000..5484928b --- /dev/null +++ b/src/components/IconButton/IconButton.jsx @@ -0,0 +1,12 @@ +import { Icon } from "../Icon/Icon"; +import { ReactButton } from "../ReactButton"; + +const IconButton = ({ icon, text, ...props }) => { + return ( + }> + {text} + + ); +}; + +export { IconButton }; diff --git a/src/components/IconButton/index.jsx b/src/components/IconButton/index.jsx new file mode 100644 index 00000000..c62ce989 --- /dev/null +++ b/src/components/IconButton/index.jsx @@ -0,0 +1 @@ +export { IconButton } from "./IconButton";