Open in Spline {' '} ·{' '} Made with Spline
Open in Spline · Made with Spline
``` The credit markup is part of the snippet, not an optional extra. The `spline-viewer` element renders a Spline badge on its own, driven by the scene's publish setting; a React component on a bare canvas does not, so the link is how the scene gets credited. If the scene is a remix, add the original creator's community link next to it. ## Bolt.new specifics [#boltnew-specifics] * Pin the version in the CDN URL. An unpinned `@splinetool/viewer` path can move under you between sessions. * If Bolt scaffolded a React project and you would rather have the component, ask for `@splinetool/react-spline` and check the import is a default import. * In a JSX file, `spline-viewer` is a custom element — React passes unknown hyphenated tags through to the DOM, so it renders as-is once the script tag has run. * The attribute is `url`. `scene` belongs to the React component and does nothing on the element. ## Checks before you ship [#checks-before-you-ship]Open in Spline {' '} ·{' '} Made with Spline
Open in Spline {' '} ·{' '} Made with Spline
Open in Spline {' '} ·{' '} Made with Spline
Open in Spline {' '} ·{' '} Made with Spline
Open in Spline · Made with Spline
``` The credit markup is part of the snippet, not an optional extra. The `spline-viewer` element renders a Spline badge on its own, driven by the scene's publish setting; a React component on a bare canvas does not, so the link is how the scene gets credited. If the scene is a remix, add the original creator's community link next to it. ## Replit specifics [#replit-specifics] * Insist the scene URL comes from you, not from the agent. An agent that invents a `prod.spline.design` id produces a page whose scene 404s, which looks like a Spline bug. * If the app is served over a proxy domain and the scene fails with a CORS error, download the `.splinecode` from the export panel and self-host it next to the app. * Give the element an explicit size, or a CSS height — an unsized custom element can collapse to nothing before the scene loads. ## Checks before you ship [#checks-before-you-ship]Open in Spline {' '} ·{' '} Made with Spline