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/sun.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

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

diff --git a/src/components/atoms/icons/sun.tsx b/src/components/atoms/icons/sun.tsx
index 6caad9c..fa9d922 100644
--- a/src/components/atoms/icons/sun.tsx
+++ b/src/components/atoms/icons/sun.tsx
@@ -1,7 +1,11 @@
-import { FC } from 'react';
+import { VFC } from 'react';
 import styles from './sun.module.scss';
 
 type SunProps = {
+  /**
+   * Set additional classnames to the icon.
+   */
+  className?: string;
   /**
    * The SVG title.
    */
@@ -13,10 +17,10 @@ type SunProps = {
  *
  * Render a svg sun icon.
  */
-const Sun: FC<SunProps> = ({ title }) => {
+const Sun: VFC<SunProps> = ({ className = '', title }) => {
   return (
     <svg
-      className={styles.sun}
+      className={`${styles.sun} ${className}`}
       viewBox="0 0 100 100"
       xmlns="http://www.w3.org/2000/svg"
     >
-- 
cgit v1.2.3

