Files to copy
The page is loaded from /landing-pages/complete-shelf-v2.html on your own domain, so
that file has to be somewhere the app serves static files from: public/ in Vite and
Next, static/ in SvelteKit.
cp -R node_modules/@designcodeio/threeui/lib-dist/assets/landing-pages public/
Without it the component renders an empty box.
Size
The component is 100% of its parent's width and height and has no size of its own, so a parent with no height renders nothing. A box around 720px tall suits a full page like this one.
Props
All optional. The defaults below are what the snippet renders.
| Prop | Values | Default |
|---|---|---|
headingFont | iowan-old-style, instrument-serif, newsreader, geist | iowan-old-style |
bodyFont | inter, geist, newsreader, instrument-serif | inter |
headingWeight | 400, 500, 600 | 400 |
bodyWeight | 400, 500, 600 | 400 |
primaryColor | a hex color | #c87046 |
headingSize | 32 to 88 | 60 |
bodySize | 10 to 18 | 12 |
headingLetterSpacing | -0.1 to 0.08 | -0.055 |
className and style pass through to the root element.