mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-29 14:46:41 +07:00
tried to make placeholders
This commit is contained in:
parent
b5b8d78cea
commit
7410376009
5 changed files with 67 additions and 1 deletions
17
src/components/placeholders/Placeholder/index.tsx
Normal file
17
src/components/placeholders/Placeholder/index.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React, { FC } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
|
||||
interface IProps {
|
||||
width?: number;
|
||||
height?: number;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
const Placeholder: FC<IProps> = ({ width = 120, height, color }) => (
|
||||
<div
|
||||
className={styles.placeholder}
|
||||
style={{ height, color, width }}
|
||||
/>
|
||||
);
|
||||
|
||||
export { Placeholder };
|
Loading…
Add table
Add a link
Reference in a new issue