ComponentsInputs & forms
Season Wheel
Pick a month, or a span of months, from the year laid out as a ring tinted by season, each month with its own small glyph.
One month
"use client";
import { useState } from "react";
import { SeasonWheel } from "@/components/miyuki-ui/season-wheel";
export default function SeasonWheelDemo() {
const [month, setMonth] = useState(2);
return (
<div className="flex flex-col items-center gap-2">
<SeasonWheel label="Best month to visit" value={month} onChange={setMonth} />
<p className="text-[13px] text-muted-foreground">
{month === 2 ? "Snow festival in Otaru, lanterns along the canal." : "We will plan around it."}
</p>
</div>
);
}A span of months
"use client";
import { SeasonWheel } from "@/components/miyuki-ui/season-wheel";
export default function SeasonWheelRangeDemo() {
return <SeasonWheel range label="Ski season" defaultValue={[12, 3]} />;
}Install
npx shadcn@latest add @miyuki-ui/season-wheelThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
SeasonWheel
Prop
Type