JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q28797F
  • License MIT

Wrapper of `@rive-app/canvas` for VitePress documentation sites.

Package Exports

  • @nolebase/ui-rive-canvas
  • @nolebase/ui-rive-canvas/components/NuLazyTeleportRiveCanvas.vue
  • @nolebase/ui-rive-canvas/components/deps
  • @nolebase/ui-rive-canvas/components/deps.d.ts
  • @nolebase/ui-rive-canvas/components/deps.js
  • @nolebase/ui-rive-canvas/components/deps.mjs
  • @nolebase/ui-rive-canvas/index
  • @nolebase/ui-rive-canvas/index.d.ts
  • @nolebase/ui-rive-canvas/index.js
  • @nolebase/ui-rive-canvas/index.mjs
  • @nolebase/ui-rive-canvas/style.css

Readme

@nolebase/ui-rive-canvas

Wrapper of @rive-app/canvas for VitePress documentation sites.

[!CAUTION]

This package is in Alpha stage.

This package is still in the Alpha stage, and it is not recommended to use it in production. The API may change in the future, and there may be bugs in the current version. Please use it with caution.

[!IMPORTANT]

If you are using VitePress, you will need to add the following configurations to your vite.config.ts file like this:

export default defineConfig(() => {
  return {
    ssr: {
      noExternal: [
        // Add this line to your vite.config.ts
        '@nolebase/ui-rive-canvas',
      ],
    },
  }
})

For more information about why configure this, please refer to the Server-Side Rendering | Vite documentation.

Install

Npm

npm i @nolebase/ui-rive-canvas -D

Yarn

yarn add @nolebase/ui-rive-canvas -D

Pnpm

pnpm add @nolebase/ui-rive-canvas -D

Documentation

Please refer to Rive Canvas for more information.