-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathTimelineSeparator.stories.tsx
More file actions
59 lines (50 loc) · 1.38 KB
/
TimelineSeparator.stories.tsx
File metadata and controls
59 lines (50 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
import React from "react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import TimelineSeparator from "./TimelineSeparator";
import styles from "./TimelineSeparator.module.css";
const meta = {
title: "Timeline/Timeline Meta/TimelineSeparator",
component: TimelineSeparator,
tags: ["autodocs"],
args: {
label: "Label Separator",
children: "Timeline Separator",
},
} satisfies Meta<typeof TimelineSeparator>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const WithHtmlChild: Story = {
args: {
label: "Custom Label",
children: (
<h2 className={styles.timelineSeparator} aria-hidden="true">
Thursday
</h2>
),
},
};
export const WithDateEvent: Story = {
args: {
label: "Date Event Separator",
children: "Wednesday",
},
};
export const WithLateEvent: Story = {
args: {
label: "Late Event Separator",
children: "Fri, Jan 9, 2026",
},
};
export const WithoutChildren: Story = {
args: {
children: undefined,
label: "Separator without children",
},
};