Skip to content

Commit

Permalink
Added css data url
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Sep 13, 2024
1 parent e7555b8 commit 58f6d2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/style/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,5 @@ const styled = {
};

export default styled;

export const svgAsCssDataUrl = (text: string) => `url(${JSON.stringify(`data:image/svg+xml,${text}`)})`;

0 comments on commit 58f6d2e

Please sign in to comment.