Composition recipe
Compose Calendar inside Popover. The trigger owns the accessible label and the selected date stays controlled by the feature using it.
<Popover>
<PopoverTrigger render={<Button variant="outline" />}>
{date ? format(date, "PPP") : "Pick a date"}
</PopoverTrigger>
<PopoverContent className="w-auto p-0">
<Calendar mode="single" selected={date} onSelect={setDate} />
</PopoverContent>
</Popover>