Files to copy
The page is loaded from /landing-pages/bestsellers-book-showcase.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 | iowan-old-style, geist, newsreader, instrument-serif | iowan-old-style |
headingWeight | 400, 500, 600, 700 | 500 |
bodyWeight | 400, 500, 600, 700 | 400 |
primaryColor | a hex color | #c3a47b |
headingSize | 184 to 420 | 325 |
bodySize | 12 to 24 | 17 |
headingLetterSpacing | -0.12 to 0.08 | -0.085 |
className and style pass through to the root element.