chuckya/app/javascript/flavours/glitch/components/skeleton.tsx

13 lines
250 B
TypeScript
Raw Normal View History

import React from 'react';
interface Props {
width?: number | string;
height?: number | string;
}
export const Skeleton: React.FC<Props> = ({ width, height }) => (
<span className='skeleton' style={{ width, height }}>
&zwnj;
</span>
);