diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-08 19:32:58 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-08 19:32:58 +0200 | 
| commit | 5c75a302c2203cb3ebf31233121026b4775662cf (patch) | |
| tree | efaaeb7805d9f211a5f01f920aaa3609648ddc0b /src/components/atoms/icons/computer-screen.tsx | |
| parent | a1e8f1e4426ed3560ce1b76fb73a6969388ed253 (diff) | |
chore(icons): accept a classname as prop
Diffstat (limited to 'src/components/atoms/icons/computer-screen.tsx')
| -rw-r--r-- | src/components/atoms/icons/computer-screen.tsx | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/src/components/atoms/icons/computer-screen.tsx b/src/components/atoms/icons/computer-screen.tsx index c9c869d..310836f 100644 --- a/src/components/atoms/icons/computer-screen.tsx +++ b/src/components/atoms/icons/computer-screen.tsx @@ -1,17 +1,24 @@ -import { FC } from 'react'; +import { VFC } from 'react';  import styles from './computer-screen.module.scss'; +export type ComputerScreenProps = { +  /** +   * Set additional classnames to the icon. +   */ +  className?: string; +}; +  /**   * ComputerScreen component   *   * Render a computer screen svg icon.   */ -const ComputerScreen: FC = () => { +const ComputerScreen: VFC<ComputerScreenProps> = ({ className = '' }) => {    return (      <svg        viewBox="0 0 100 100"        xmlns="http://www.w3.org/2000/svg" -      className={styles.icon} +      className={`${styles.icon} ${className}`}      >        <path          d="M 1.0206528,11.991149 H 98.979347 V 78.466748 H 1.0206528 Z" | 
