From 5c75a302c2203cb3ebf31233121026b4775662cf Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 8 Apr 2022 19:32:58 +0200
Subject: chore(icons): accept a classname as prop

---
 src/components/atoms/icons/moon.tsx | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'src/components/atoms/icons/moon.tsx')

diff --git a/src/components/atoms/icons/moon.tsx b/src/components/atoms/icons/moon.tsx
index 82b0ef6..4f52319 100644
--- a/src/components/atoms/icons/moon.tsx
+++ b/src/components/atoms/icons/moon.tsx
@@ -1,14 +1,21 @@
-import { FC } from 'react';
+import { VFC } from 'react';
 import styles from './moon.module.scss';
 
 type MoonProps = {
+  /**
+   * Set additional classnames to the icon.
+   */
+  className?: string;
+  /**
+   * The SVG title.
+   */
   title?: string;
 };
 
-const Moon: FC<MoonProps> = ({ title }) => {
+const Moon: VFC<MoonProps> = ({ className = '', title }) => {
   return (
     <svg
-      className={styles.icon}
+      className={`${styles.icon} ${className}`}
       viewBox="0 0 100 100"
       xmlns="http://www.w3.org/2000/svg"
     >
-- 
cgit v1.2.3

