본문으로 건너뛰기
zest/ui

컴포넌트

Time Input

시간 입력 — 「905」도 09:05.

905 처럼 적어도 돼요

설치

shadcn CLI 로 소스를 프로젝트에 가져와요. 테마·유틸·의존 부품이 함께 설치돼요.

npx shadcn@latest add @zest/time-input

패키지로 쓰려면 @zest-im/ui 에서 가져와요. 설치 안내

사용법

import { TimeInput } from '@/components/ui/time-input'

위 미리보기의 「코드」 탭이 실제로 동작하는 예제예요.

API

prop타입설명
value?string—
onChange(value?: string | undefined) => void—
step?number—
placeholder?string—
disabled?boolean—
id?string—
className?string—
aria-describedby?string—
aria-invalid?boolean—

표에 없는 HTML·Radix 속성은 그대로 전달돼요.