react-spline-next
TypeScript icon, indicating that this package has built-in type declarations

0.9.282-release3 • Public • Published

🖲️ 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}
    />
  );
};

Package Sidebar

Install

npm i react-spline-next

Weekly Downloads

2

Version

0.9.282-release3

License

MIT

Unpacked Size

6.33 MB

Total Files

12

Last publish

Collaborators

  • aaronyee