The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add theme to react component
Steven Tey8a763819632b
diff --git a/packages/embeds/react/src/embed.tsx b/packages/embeds/react/src/embed.tsxindex 9c9b464818..ae25522874 100644--- a/packages/embeds/react/src/embed.tsx+++ b/packages/embeds/react/src/embed.tsx@@ -8,12 +8,13 @@ type Options = Omit<DubEmbedOptions, "token">;type DubEmbedProps = {token: DubEmbedOptions["token"];data: DubEmbedOptions["data"];+ theme?: DubEmbedOptions["theme"];options?: Options;} & HTMLProps<HTMLDivElement>;export const DubEmbed = memo(- ({ token, data, options, ...rest }: DubEmbedProps) => (- <DubEmbedInner options={{ ...options, token, data }} {...rest} />+ ({ token, data, theme, options, ...rest }: DubEmbedProps) => (+ <DubEmbedInner options={{ ...options, token, data, theme }} {...rest} />),);