Skip to content

rtk-grid

The main grid component which abstracts all the grid handling logic and renders it for you.

Properties

Property Type Required Default Description
aspectRatio string ✅ - The aspect ratio of each participant
config UIConfig ❌ createDefaultConfig() Config object
gap number ✅ - Gap between participants
gridSize GridSize ✅ - Grid size
iconPack IconPack ❌ defaultIconPack Icon pack
layout GridLayout ✅ - Grid Layout
meeting Meeting ✅ - Meeting object
overrides any ✅ - Deprecated
size Size ✅ - Size
states States ✅ - States
t RtkI18n ❌ useLanguage() Language

Usage Examples

Basic Usage

<rtk-grid></rtk-grid>

With Properties

<rtk-grid
 aspectRatio="example"
 gridSize="md"
 size="md">
</rtk-grid>
<script>
  const el = document.querySelector("rtk-grid");

  el.meeting = meeting;
  el.gap = 42;
</script>

Was this helpful?