Package Exports
- react-spline-next
- react-spline-next/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-spline-next) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🖲️ React Spline Next
Modified from '@splinetool/viewer' and wrapped to React component to allow remove logo and customize scroll anchor element.
Quickstart
yarn add react-spline-next
import React from 'react';
import Spline from 'react-spline-next';
const App = () => {
return (
<Spline
url={url}
loading={'eager'}
style={{ width: '100%', height: '100%' }}
hideLogo={true}
anchorElement={anchorRef.current}
/>
);
};