Skip to content

Commit a266d8e

Browse files
committed
docs: examples for custom timeline ends
1 parent 33c1bfa commit a266d8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Timeline.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,12 @@ customItems[3] = {
257257
customPointer: <div className="pointy" style={{ backgroundColor: 'green' }} />,
258258
};
259259

260-
export const CustomMarkerAndPointer: StoryObj<typeof Timeline> = {
260+
export const CustomMarkerPointerAndEnds: StoryObj<typeof Timeline> = {
261261
args: {
262+
customTimelineEnds: {
263+
opening: <div style={{ width: '1rem', height: '1rem', backgroundColor: 'green' }} />,
264+
closing: <div style={{ width: '1rem', height: '1rem', backgroundColor: 'blue' }} />,
265+
},
262266
items: customItems,
263267
...defaultTimelineConfig,
264268
customMarker: <span style={{ fontSize: '2rem' }}>🔥</span>,

0 commit comments

Comments
 (0)