About
TimeInput uses a browser/OS time picker on coarse pointers by default and Astryx's typed field on fine pointers. It converts values to a standard format and supports arrow-key adjustment on the typed surface. Use it in forms, scheduling flows, or any interface where users need to select a specific time. Astryx by Meta. Source: https://astryx.atmeta.com/components/TimeInput
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Time Input to your project and fits it to your theme.
Code
How Astryx Time Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-time-input.tsx. */
import '@/components/ui/astryx-time-input-utils/astryx-preview.css';
import {useState} from 'react';
import {TimeInput, type ISOTimeString} from '@/components/ui/astryx-time-input';
import {Stack} from '@astryxdesign/core/Layout';
function OfficialSample() {
const [slot, setSlot] = useState<ISOTimeString | undefined>('09:00');
return (
<Stack direction="vertical" gap={3} width="100%">
<TimeInput
label="Appointment slot"
increment={15}
description="Use arrow keys to change by 15 minutes"
value={slot}
onChange={setSlot}
hasClear
/>
</Stack>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" data-centered style={{maxWidth: 360}}>
<OfficialSample />
</div>
</div>
);
}







