diff options
Diffstat (limited to 'src/components/atoms/icons/envelop.tsx')
| -rw-r--r-- | src/components/atoms/icons/envelop.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/atoms/icons/envelop.tsx b/src/components/atoms/icons/envelop.tsx index a846a45..7b50d1d 100644 --- a/src/components/atoms/icons/envelop.tsx +++ b/src/components/atoms/icons/envelop.tsx @@ -1,17 +1,24 @@ -import { FC } from 'react'; +import { VFC } from 'react'; import styles from './envelop.module.scss'; +export type EnvelopProps = { + /** + * Set additional classnames to the icon. + */ + className?: string; +}; + /** * Envelop Component * * Render an envelop svg icon. */ -const Envelop: FC = () => { +const Envelop: VFC<EnvelopProps> = ({ 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.background} |
