# Vue 3

*skydial · Frameworks*

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.

```tsx
<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.

---
https://tbudin.github.io/skydial/vue/ · skydial 0.4.1 · MIT
