Time field
A time typed in parts: hours, minutes and AM or PM.
Add it to your project
Or install the packages yourselfTerminal
npm install @heroui/react
First time with HeroUI? Set it up once.
The code
* controls.
*/
"use client";
import {Label, TimeField} from "@heroui/react";
export default function TimeFieldDemo() {
return (
<TimeField className="w-[256px]" name="time">
<Label>Time</Label>
<TimeField.Group>
<TimeField.Input>{(segment) => <TimeField.Segment segment={segment} />}</TimeField.Input>This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: A default export (HeroUI's docs use named ones) without the docs site's prop controls.