1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 21:05:29 -04:00

update component prop types to use JSX.IntrinsicElements

This commit is contained in:
2022-02-09 09:37:20 -05:00
parent f205a14bdc
commit 885f97fa64
40 changed files with 280 additions and 275 deletions

View File

@@ -3,14 +3,14 @@ import classNames from "classnames";
import styles from "./Loading.module.css";
type Props = {
type LoadingProps = {
width: number; // of entire container, in pixels
boxes?: number; // total number of boxes (default: 3)
timing?: number; // staggered timing between each box's pulse, in seconds (default: 0.1s)
className?: string;
};
const Loading = ({ width, boxes = 3, timing = 0.1, className }: Props) => {
const Loading = ({ width, boxes = 3, timing = 0.1, className }: LoadingProps) => {
// each box is just an empty div
const divs = [];