spectacles-ui-kit

Installation
SKILL.md

Spectacles UI Kit — Programmatic UI Guide

While Lens Studio provides UI prefabs, you can construct complex interfaces entirely in TypeScript using the Spectacles UI Kit. This approach (sometimes called FastUI) is ideal for dynamic grids, scalable menus, and data-driven galleries.

Import Note: Components belong to SpectaclesUIKit.lspkg.


Component Lifecycle (CRITICAL)

When creating UI Kit components via script, you must follow this exact lifecycle sequence or the layout will fail to render:

  1. global.scene.createSceneObject()
  2. createComponent('TypeName')
  3. Set physical size/dimensions
  4. Call .initialize()
  5. Set visual properties (appearance, margins)
  6. Bind interaction events
Related skills

More from rolandsmeenk/lensstudioagents

Installs
4
GitHub Stars
5
First Seen
Mar 28, 2026