v1.2.0
Theme

Time Input

A styled time selection input component wrapping a native <input type="time"> with DuskMoon theming and color support.

Installation

npm install @duskmoon-dev/el-time-input

Usage

import { register } from '@duskmoon-dev/el-time-input';
register();
<el-dm-time-input value="09:30" color="primary"></el-dm-time-input>

Live Demo

Default

Colors

Disabled

Properties

PropertyTypeDefaultDescription
valuestring''Time value in HH:MM format
disabledbooleanfalseDisable the input
color'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error''primary'Color theme