File tree Expand file tree Collapse file tree
apps/website/screens/theme-generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import {
3131 TabsPreview ,
3232 TextareaPreview ,
3333 TextInputPreview ,
34+ TimeInputPreview ,
3435 ToastPreview ,
3536 ToggleGroupPreview ,
3637 TooltipPreview ,
@@ -64,6 +65,7 @@ export const componentsRegistry = {
6465 "/components/switch" : SwitchPreview ,
6566 "/components/text-input" : TextInputPreview ,
6667 "/components/textarea" : TextareaPreview ,
68+ "/components/time-input" : TimeInputPreview ,
6769 "/components/toggle-group" : ToggleGroupPreview ,
6870 "/components/breadcrumbs" : BreadcrumbsPreview ,
6971 "/components/contextual-menu" : ContextualMenuPreview ,
Original file line number Diff line number Diff line change 1+ import { DxcFlex , DxcTimeInput } from "@dxc-technology/halstack-react" ;
2+ const TimeInputPreview = ( ) => {
3+ return (
4+ < DxcFlex gap = "var(--spacing-gap-ml)" >
5+ < DxcTimeInput label = "Start time" helperText = "We'll use this time to schedule your appointment." />
6+ < DxcTimeInput
7+ label = "End time"
8+ helperText = "We'll use this time to schedule your appointment."
9+ error = "Incorrect time"
10+ />
11+ </ DxcFlex >
12+ ) ;
13+ } ;
14+
15+ export default TimeInputPreview ;
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export { default as TablePreview } from "./TablePreview";
3030export { default as TabsPreview } from "./TabsPreview" ;
3131export { default as TextareaPreview } from "./TextareaPreview" ;
3232export { default as TextInputPreview } from "./TextInputPreview" ;
33+ export { default as TimeInputPreview } from "./TimeInputPreview" ;
3334export { default as ToastPreview } from "./ToastPreview" ;
3435export { default as ToggleGroupPreview } from "./ToggleGroupPreview" ;
3536export { default as TooltipPreview } from "./TooltipPreview" ;
You can’t perform that action at this time.
0 commit comments