skydialv0.4.1 Vue 3
  1. skydial
  2. Frameworks
  3. Vue 3

Vue 3

Vue components accept one typed options object. Changes to that object update the mounted component, and unmounting releases its scene. Callbacks in options, including onDateChange and onPlanetChange, connect the picker to Vue state.

A real 3D celestial website widget loads here. Positions, illumination and rotation are computed from the selected moment. Exact date and time controls remain available without WebGL.

The code for what is on screen

<script setup>
import { ref } from 'vue'
import { CelestialDateTimePicker } from 'skydial/vue'
import 'skydial/style.css'
const date = ref(new Date('2026-06-01T12:00:00Z'))
</script>

<CelestialDateTimePicker :options="{ date, onDateChange: value => date = value }" />

The Vue adapter mounts the shared React/Three.js renderer inside a Vue-owned container. Install Vue plus the same visual renderer peers as React. It does not contain a second astronomy or scene implementation. Server rendering produces a host container; the scene mounts on the client.