diff options
Diffstat (limited to 'src/components/atoms/icons/close.tsx')
| -rw-r--r-- | src/components/atoms/icons/close.tsx | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/src/components/atoms/icons/close.tsx b/src/components/atoms/icons/close.tsx index 80d904e..eb9ce7c 100644 --- a/src/components/atoms/icons/close.tsx +++ b/src/components/atoms/icons/close.tsx @@ -1,17 +1,24 @@ -import { FC } from 'react'; +import { VFC } from 'react';  import styles from './close.module.scss'; +export type CloseProps = { +  /** +   * Set additional classnames to the icon. +   */ +  className?: string; +}; +  /**   * Close component   *   * Render a close svg icon.   */ -const Close: FC = () => { +const Close: VFC<CloseProps> = ({ className = '' }) => {    return (      <svg        viewBox="0 0 100 100"        xmlns="http://www.w3.org/2000/svg" -      className={styles.icon} +      className={`${styles.icon} ${className}`}      >        <path          className={styles.line} | 
