# React

*skydial · Frameworks*

Import components from the React entry and the stylesheet once in your application. Components preserve a client boundary for server-component frameworks; initial text can render on the server. Supply an explicit date and place for deterministic server/client output.

```tsx
import { CelestialProvider, CelestialDateTimePicker, EarthWidget, MoonWidget } from 'skydial/react'
import 'skydial/style.css'

<CelestialProvider defaultDate={new Date('2026-06-01T12:00:00Z')}>
  <CelestialDateTimePicker />
  <EarthWidget />
  <MoonWidget />
</CelestialProvider>
```

A nested provider isolates time. Passing date, defaultDate or clock to an individual widget creates a local scope. Controlled dates without onDateChange are read-only. Selection callbacks may fire throughout gestures and animation; debounce callbacks that start expensive external work.

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