Spaces is a Fluid component that provides a grid layout for users to compose their own experiences by adding and re-arranging components. This example explores how modular document types could work in Fluid.
You can run this example using the following steps:
- Run
npm installandnpm run build:fast -- --nolintfrom theFluidFrameworkroot directory. a. For an even faster build, you can add the package name to the build command, like this:npm run build:fast -- --nolint @fluid-example/spaces - In a separate terminal, start a Tinylicious server by following the instructions in Tinylicious.
- Run
npm run startfrom this directory (examples/apps/spaces) and open http://localhost:8080 in a web browser to see the app running.
The spaces package pulls in a collection of outside components and also has a few internal components that can be found at ./src/components. The internal components simply offer more functionality for prototyping.
Template allows you to save and re-use a layout. When you click the Template button it will save the current layout. If you want to create a new document with the same layout add the ?template to the url when creating a new doc.