
Outline trigger in a labelled field that opens hour and minute columns with Now, Clear and OK.
@reui
c-time-picker-2.tsx
import { TimePicker } from "@/components/reui/time-picker"
import {
Field,
FieldDescription,
FieldLabel,
} from "@/components/ui/field"
export function Pattern() {
return (
<div className="w-full max-w-xs">
<Field>
<FieldLabel id="standup-time-label" htmlFor="standup-time">
Standup time
</FieldLabel>
{/* With no children the picker renders its own trigger and popover.
`aria-labelledby` keeps the value in the trigger's name, so it
reads "Standup time 09:30" rather than the label alone. */}
<TimePicker
id="standup-time"
aria-labelledby="standup-time-label"
aria-describedby="standup-time-description"
/>
<FieldDescription id="standup-time-description">
Reminders go out 10 minutes before.
</FieldDescription>
</Field>
</div>
)
}






























