Files to copy
The page is loaded from /landing-pages/meng-to-sketchbook.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 | instrument-serif, newsreader, geist | instrument-serif |
bodyFont | newsreader, geist, instrument-serif | newsreader |
headingWeight | 300, 400, 500, 600 | 400 |
bodyWeight | 200, 300, 400, 500, 600 | 400 |
primaryColor | a hex color | #2b2721 |
headingSize | 20 to 48 | 30 |
bodySize | 14 to 30 | 20 |
headingLetterSpacing | -0.06 to 0.12 | 0.01 |
className and style pass through to the root element.