Skip to content

Instantly share code, notes, and snippets.

View mosco98's full-sized avatar
🎯
Focusing

Moses Enyinnaya mosco98

🎯
Focusing
  • Maker Studios
  • Nigeria
View GitHub Profile
@03balogun
03balogun / react-pdf-tailwind-primitives.tsx
Created November 18, 2024 12:07
react-pdf-tailwind-primitives.tsx
import {createTw} from "react-pdf-tailwind";
import {Image, Link, Text, View} from "@react-pdf/renderer";
import {ComponentProps} from "react";
import {Style, SVGPresentationAttributes} from "@react-pdf/types";
type PropsWithClassName<T> = T & {className?: string}
const mergeStyles = (...styles: (Style | Style[] | SVGPresentationAttributes | undefined)[]) => {
const merged: Style = {};