Hours and minutes
Use 24-hour HH:mm input or open the three-row wheels.
defaultValue="14:30"
WelkUI!REACT EDITIONExplore live variants, compare states, and learn every prop. Pick a component to start.
An editable 24-hour time field with custom scrollable wheels showing three rows per column. Type a time or select hours/minutes using the wheels and keyboard. Use controlled value/onValueChange or uncontrolled defaultValue; an empty string clears the time.
import { WelkTimePicker } from "@welkui/react";
<WelkTimePicker label="Mission time" defaultValue="14:30" />Import @welkui/react/styles.css once in your app. Stateful snippets belong inside a React component.
These are real components, not screenshots. Compare their appearance and try the controls. Key props below each preview show what changes; use the usage example above for imports and component setup.
Use 24-hour HH:mm input or open the three-row wheels.
defaultValue="14:30"Adds a seconds wheel and accepts HH:mm:ss values.
showSeconds defaultValue="14:30:45"Start without a value and let the user type or choose a time.
defaultValue=""The value remains visible without allowing manual or wheel edits.
disabledRequired props are marked in the default column. Other props are optional. ReactNode accepts text or JSX.
| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | Required | Visible, accessible control label. |
value | string | Uncontrolled | Controlled selection. Update it in onValueChange. |
defaultValue | string | "" | Initial value for uncontrolled use. |
onValueChange | (value: string) => void | Unset | Called with the updated value; an empty string clears it. |
showSeconds | boolean | false | Enables seconds in both the input format and wheels. |
name | string | Unset | Name used when submitting a native form. |
id | string | Generated | Control identifier; automatically linked to its label. |
disabled | boolean | false | Prevents interaction. |
required | boolean | false | Enables native required-field validation. |
className | string | Unset | Additional CSS class on the component root. |
This component supports the props listed above, not arbitrary native HTML attributes.
Import @welkui/react/styles.css once in your app entry or Next.js root layout. The previews use the default theme; override --welk-* CSS tokens in your app to customize it.
For Next.js, put hooks and event handlers in a component beginning with "use client". Keep state local to the component using the control. The library preserves its client boundaries and uses your installed React version.
Use defaultValue or defaultChecked for uncontrolled fields, or a state value and its change callback for controlled fields. Do not switch between these modes during the lifetime of a field.
Modal and notification examples start closed: use their Try buttons to see them. Disabled examples are deliberately non-interactive. Validate forms, uploads, authentication, and server responses in your application; these components only provide UI.