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

react-twitter-embed ➡️ react-tweet

This commit is contained in:
2023-09-08 11:47:38 -04:00
parent 61660d9d56
commit 1d8c2eab99
25 changed files with 789 additions and 719 deletions

View File

@@ -1,5 +1,5 @@
import { styled, theme, keyframes } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";
import type { ComponentPropsWithoutRef } from "react";
const Wrapper = styled("div", {
display: "inline-block",
@@ -20,7 +20,7 @@ const Box = styled("div", {
backgroundColor: theme.colors.mediumLight,
});
export type LoadingProps = ComponentProps<typeof Wrapper> & {
export type LoadingProps = ComponentPropsWithoutRef<typeof Wrapper> & {
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)