Ecme logoEcme logo
Dashboard
    Ecommerce
    Project
    Marketing
    Analytic
Network
    BGP
      Peer
      RTBH
Netflow
    Dashboard
    Flow Analysis
      Top Talkers
      Flow Explorer
      IP Analyzer
    Threats
      Active Attacks
      Mitigation
    System
      Diagnostics
DPI
    Overview
    Traffic Logs
    Analysis
      IP Analysis
      Domain Check
      Unmapped ASNs
      Uncategorized Domains
    Threats
      Blacklists Data
      Blocklist Sources
      Threat Feeds
    Configuration
      Senders
      Ignored Domains
      Webhooks & Alerts
      System Maintenance
    Datasets
      IP Dataset
      Domain Dataset
Concepts
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
UI Components
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Carousel
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
Authentication
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
Others
    Access Denied
    Landing
Guide
    Documentation
    Shared Component
    Utilities
    Changelog
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy

TimeInput

An input field alllow user enter specify time.

Basic

Basic example of TimeInput.
:

Time range input

Basic example for TimeInputRange.
:
~
:

Controlled

Controlled usage.
:
:
~
:

Display seconds

We can also enable seconds for input.
: :

Display AM or PM

Setting format prop to '12' to change time to 12 hours format
:

Sizes

There's three sizes of option for TimeInput.
:
:
:

Disabled

Disabled TimeInput.
:

Affix

TimeInput can have suffix or prefix content inside.
:
:

Invalid state

Display TimeInput as invalid status when invalid prop is set to true.
:

API

TimeInput
PropDescriptionTypeDefault
amLabelDisplay string for AM'string''am'
amPmPlaceholderPlaceholder for AM/PM field'string''am'
clearableWhether allow to clear valuebooleantrue
defaultValueDefault value of TimeInput (use value instead if it is controlled)Date-
disabledWhether TimeInput is disabledbooleanfalse
formatDetermine time format'12' | '24''24'
invalidWhether the TimeInput is invalid statusboolean-
nextRefRef to focus after final TimeInput field, can be used by TimeInputRangeRefObject-
onChangeCallback when TimeInput value changed(value: Date) => void-
pmLabelDisplay string for PM'string''pm'
prefixRender a prefix content inside TimeInputstring | ReactNode-
showSecondsWhether display seconds input fieldboolean-
sizeTimeInput size'lg' | 'md' | 'sm''md'
suffixRender a suffix content inside TimeInputstring | ReactNodeReactNode
timeFieldPlaceholderTime field placeholder'string''--'
timeFieldClassExtra class for time field'string'-
valueValue of TimeInput (Controlled)Date-
TimeInput.TimeInputRange
PropDescriptionTypeDefault
amLabelDisplay string for AM'string''am'
amPmPlaceholderPlaceholder for AM/PM field'string''am'
clearableWhether allow to clear valuebooleantrue
defaultValueDefault value of TimeInputRange (use value instead if it is controlled)Date-
disabledWhether TimeInputRange is disabledbooleanfalse
formatDetermine time format'12' | '24''24'
invalidWhether the TimeInputRange is invalid statusboolean-
nextRefRef to focus after final TimeInputRange field, can be used by TimeInputRangeRangeRefObject-
onChangeCallback when TimeInputRange value changed(value: Date) => void-
pmLabelDisplay string for PM'string''pm'
prefixRender a prefix content inside TimeInputRangestring | ReactNode-
separatorSeperator between time inputs 'string' | '24''~'
showSecondsWhether display seconds input fieldboolean-
sizeTimeInputRange size'lg' | 'md' | 'sm''md'
suffixRender a suffix content inside TimeInputRangestring | ReactNodeReactNode
timeFieldPlaceholderTime field placeholder'string''--'
timeFieldClassExtra class for time field'string'-
valueValue of TimeInputRange (Controlled)Date-
TABLE OF CONTENT
  • Basic
  • Time range input
  • Controlled
  • Display seconds
  • Display AM or PM
  • Sizes
  • Disabled
  • Affix
  • Invalid state