🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

@dxos/aurora-grid

Package Overview
Dependencies
Maintainers
7
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/aurora-grid

A datagrid component.

latest
npmnpm
Version
0.3.2
Version published
Weekly downloads
2
-75%
Maintainers
7
Weekly downloads
 
Created
Source

Mosaic

Mosaic is a drag-and-drop layout system for building responsive, multi-column layouts. It is built on top of dnd kit and Aurora.

Taxonomy

ItemDescription
Mosaic.ProviderA Root container and React context that routes events between Containers.
Mosaic.OverlayA DOM portal managed by the Mosaic context that renders a Container's Component while dragging.
Mosaic.ContainerA complex React component that manages the layout of a collection of tiles (e.g., Grid, Kanban, Stack, Table, Tree).
Mosaic.TileA Draggable wrapper managed by its parent container.
ComponentA pure React component that is rendered within the layout via the container's Tile or the root Mosaic's Overlay.
ItemA datum represented by a Tile.

Design principles

  • Extends dnd-kit without obfuscation or wrapping; for example, mosaic provides additional hooks in the same manner as dnd-kit's own useSortable`.
  • Mosaics consist of containers and pure components that can be laid out and rearranged by the user
  • Aurora components are pure tailwind-styled Radix components that expose small parts (List, ListItem, ListItem.Header, etc.)
  • Mosaic Containers define their own data model and assemble Radix-style Aurora components.
  • Containers implement specific layouts of Tiles, which may reuse common components, such as Aurora Cards.
  • Container Models facilitate pure React components, but are easily mapped to data structures (e.g., Graph) and ECHO data sets without the need to wrap/map the underlying reactive objects (e.g., via signals).

Issues

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts