Closed graemeniedermayer closed 1 month ago
https://docs.pmnd.rs/uikit/getting-started/vanilla
There's a number of small fixes needed for the documentation.
index.html
root
canvas
div
const root = new Root(camera, renderer, undefined, { flexDirection: "row", padding: 10, gap: 10 })
should be something more like
const root = new Root(camera, renderer, { flexDirection: 'row', gap: 30, width: 500, borderRadius: 10, padding: 10, alignItems: 'center', backgroundColor: 'red', overflow: 'scroll', })
(Some of these options might be unnecessary but the first one created a ui that wasn't visible.)
The example here works much better than the documentation. https://github.com/pmndrs/uikit/tree/main/examples/vanilla
Thanks, would you like to fix them in a PR? :)
fixed in latest release
https://docs.pmnd.rs/uikit/getting-started/vanilla
There's a number of small fixes needed for the documentation.
index.html
file,root
needs to be acanvas
not adiv
.should be something more like
(Some of these options might be unnecessary but the first one created a ui that wasn't visible.)
The example here works much better than the documentation. https://github.com/pmndrs/uikit/tree/main/examples/vanilla