Skip to content
caliper ui pro docs

Weather scene

The sky behind a forecast, drawn in the ink of the theme: a slow sun with turning rays, clouds that drift in layers, rain in two depths, snow that sways, and a storm's rain with an occasional soft flash of lightning. A change of condition blends across.

Pro

16°

Steady rain until 15:00

When to use

  • Weather, travel and event apps where the conditions set the mood.
  • A dashboard tile for a site's local conditions.

When not to use

  • Behind long text.
  • Showing forecasts; it is a mood, not data.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/weather-scene

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

WeatherScene

2 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
condition *WeatherCondition—
labelstring—Read in place of the picture, e.g. "Light rain". Defaults to the condition.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes img semantics, with aria-label kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/weather-scene.md

The index of every part is at /llms.txt.

More in Surfaces