Skip to content

Files

Latest commit

2b7f50f · Feb 10, 2024

History

History

svg-components

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 11, 2024
May 22, 2022
Mar 15, 2017
Oct 18, 2023
Apr 26, 2023
Mar 27, 2023
Feb 10, 2024
Oct 28, 2022
May 22, 2022

SVG components example with SWC

This example uses svg components without disabling SWC using @svgr/webpack to import .svg files and rendering them as React components. @svgr/webpack.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example svg-components svg-components-app
yarn create next-app --example svg-components svg-components-app
pnpm create next-app --example svg-components svg-components-app

Deploy it to the cloud with Vercel (Documentation).