Skip to content

Components ​

Each component is a ready-made piece of a view. It comes in two versions (React and plain JavaScript) and its page shows it running on a fake world. Copy one into your project and use it as it is or change it.

  • React: each component is one file built on the useWorld hook. You copy the hook once and every component uses it.
  • Plain JavaScript: each component is one function that renders into an element you pass and renders again whenever the world changes.

The menu on the left and the search (/) list every component.

Messages with pictures, files, videos and charts ​

A message can carry images, files, media and charts besides its text. These components render the content of a message or send a file chosen by the person:

  • MessageList: the whole conversation with the full content of each message.
  • MediaView: one video, sound, picture, PDF or link of a message.
  • MessageChart: one chart of a message as a small SVG.
  • FileButton: a button that sends the file the person picks.
  • MemberName: the sender of a message as a button that opens their profile card.

The UNaIVERSE GUI kit, released under the Apache License 2.0. Copyright 2024-2026 UNaIVERSE S.r.l.