ComponentsData display
Sun Arc
The sun's path for one day: an arc from sunrise to sunset with the sun at a time you can scrub.
"use client";
import { useState } from "react";
import { SunArc } from "@/components/miyuki-ui/sun-arc";
export default function SunArcDemo() {
const [time, setTime] = useState("13:05");
return (
<div className="w-full max-w-xl">
<SunArc label="Hakuba, 14 February" sunrise="06:38" sunset="17:29" time={time} onTimeChange={setTime} />
</div>
);
}Install
npx shadcn@latest add @miyuki-ui/sun-arcThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
SunArc
Prop
Type