Nounspace [Alpha]
  • Introduction to Nounspace
  • System Architecture
  • Routing
  • Spaces
    • Homebase
    • Profile
    • Themes
    • Space Configuration
  • Fidgets
    • Layout Fidget
    • Fidget Data Storage
  • Accounts
    • Identities
    • Signatures
Powered by GitBook
On this page
  1. Fidgets

Layout Fidget

Layout Fidgets encode how Fidgets are arranged and displayed within a Space.

PreviousFidgetsNextFidget Data Storage

Last updated 1 year ago

The default layout will be a simple grid, but we intend to open this functionality up to developers down the road to enable more complex and customizable systems for presenting Fidgets.

Default Grid Layout

[ /src/fidgets/layout/Grid.tsx ]

We're leveraging the library for our default layout and editing capabilities.

The settings for the default layout are stored in the Homebase page. [ /src/pages/homebase/index.tsx ]

  const gridDetails: GridLayout = {
    isDraggable: false,
    isResizable: false,
    items: 4,
    cols: 12,
    rowHeight: 70,
    compactType: null,
    preventCollision: true,
    maxRows: 9,
    layout: defaultLayoutData,
  };
React Grid Layout