You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`items`|[`TimelineItemsProps`](#timelineitemsprops)| Array of timeline items ||
55
-
|`positioning?`|`'alternating' \| 'left' \| 'right'`| How the items should be positioned relative to the timeline |`'alternating'`|
56
-
|`gap?`|`number`| The horizontal gap between timeline items | 50 (`px`) |
57
-
|`offset?`|`{ left?: number; right?: number } \| number`| Offset left or right items from the top (default offset when passing just a `number`: `right`) | 50 (`px`) |
58
-
|`minMarkerGap?`|`number`| The minimum gap markers will have between each other | 50 (`px`) |
59
-
|`defaultPointerOffset?`|`number`| The regular top offset pointers have to their item card | 40 (`px`) |
60
-
|`dateLocal?`|`Local`| Date locale ||
61
-
|`dateFormat?`|`string`| Specific date format according to date-fns [specification](https://date-fns.org/v2.29.3/docs/format). Ignored when passing a `string` as date |`'P'`|
62
-
|`customMarker?`|`ReactElement`| Custom maker element replacing the default ||
63
-
|`customPointer?`|`ReactElement`| Custom pointer element replacing the default ||
64
-
|`styleConfig?`|[`StyleConfig`](#styleconfig)| Style config object for customizing timeline by setting css custom properties ||
|`items`|[`TimelineItemsProps`](#timelineitemsprops)| Array of timeline items ||
55
+
|`positioning?`|`'alternating' \| 'left' \| 'right'`| How the items should be positioned relative to the timeline |`'alternating'`|
56
+
|`minMarkerGap?`|`number`| The minimum gap markers will have between each other | 50 (`px`) |
57
+
|`dateLocal?`|`Local`| Date locale ||
58
+
|`dateFormat?`|`string`| Specific date format according to date-fns [specification](https://date-fns.org/v2.29.3/docs/format). Ignored when passing a `string` as date |`'P'`|
59
+
|`customMarker?`|`ReactElement`| Custom maker element replacing the default ||
60
+
|`customPointer?`|`ReactElement`| Custom pointer element replacing the default ||
61
+
|`styleConfig?`|[`StyleConfig`](#styleconfig)| Style config object for customizing timeline by setting css custom properties ||
62
+
|`className?`|`string`| Additional class name ||
66
63
67
64
### TimelineItemsProps
68
65
@@ -89,6 +86,11 @@ The style can either be passed as a javascript object...
89
86
width?: string;
90
87
color?:string;
91
88
};
89
+
gap?:string;
90
+
offset?: {
91
+
left?: string;
92
+
right?:string;
93
+
};
92
94
marker?: {
93
95
size?: string;
94
96
color?:string;
@@ -97,6 +99,7 @@ The style can either be passed as a javascript object...
97
99
pointer?: {
98
100
height?: string;
99
101
width?:string;
102
+
offset?:string;
100
103
};
101
104
card?: {
102
105
background?: string;
@@ -119,11 +122,15 @@ The style can either be passed as a javascript object...
0 commit comments