From 58f6d2e4ff8a43a444731d319d98981693520199 Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:23:26 +0530 Subject: [PATCH] Added css data url --- src/style/styled.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/style/styled.ts b/src/style/styled.ts index f3c93144..52038ebb 100644 --- a/src/style/styled.ts +++ b/src/style/styled.ts @@ -266,3 +266,5 @@ const styled = { }; export default styled; + +export const svgAsCssDataUrl = (text: string) => `url(${JSON.stringify(`data:image/svg+xml,${text}`)})`;