rsnext/examples/svg-components
2020-08-29 22:32:35 -04:00
..
pages chore: remove-redundant-example-import (#13175) 2020-05-22 16:13:37 +00:00
svgs examples: add svg-components (#982) 2017-03-15 15:26:08 +01:00
.babelrc examples: add svg-components (#982) 2017-03-15 15:26:08 +01:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
README.md Simplify example usage instructions (#16678) 2020-08-29 22:22:02 -04:00

SVG components example

This example uses a custom .babelrc to add support for importing .svg files and rendering them as React components. babel-plugin-inline-react-svg is used to handle transpiling the SVGs.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

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

npx create-next-app --example svg-components svg-components-app
# or
yarn create next-app --example svg-components svg-components-app

Deploy it to the cloud with Vercel (Documentation).