1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-19 12:15:27 -04:00

minor style tweaks

This commit is contained in:
2025-05-05 12:55:12 -04:00
parent 5058382f71
commit 27e6ca2a4b
64 changed files with 571 additions and 551 deletions
+8 -4
View File
@@ -1,11 +1,15 @@
import { cn } from "@/lib/utils";
import type { ComponentPropsWithoutRef } from "react";
export type VideoProps = Omit<Partial<ComponentPropsWithoutRef<"video">>, "src"> & {
const Video = ({
src,
autoPlay,
className,
children,
...rest
}: Omit<Partial<ComponentPropsWithoutRef<"video">>, "src"> & {
src: string | string[] | undefined;
};
const Video = ({ src, autoPlay, className, children, ...rest }: VideoProps) => {
}) => {
return (
<video
{...(typeof src === "string" ? { src } : {})}