-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathEventTileBubble.stories.tsx
More file actions
53 lines (45 loc) · 1.42 KB
/
EventTileBubble.stories.tsx
File metadata and controls
53 lines (45 loc) · 1.42 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
/*
* 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 { LockSolidIcon, ErrorSolidIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { EventTileBubble } from "./EventTileBubble";
const meta = {
title: "Timeline/Timeline Event/EventTileBubble",
component: EventTileBubble,
tags: ["autodocs"],
args: {
icon: <ErrorSolidIcon />,
title: "Title goes here",
subtitle: "Subtitle goes here",
className: "custom-class",
},
} satisfies Meta<typeof EventTileBubble>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const HasLockSolidIcon: Story = {
args: {
className: undefined,
icon: <LockSolidIcon />,
children: undefined,
},
};
export const HasChildren: Story = {
args: {
className: undefined,
children: <div>children</div>,
},
};
export const IsCryptoEventBubble: Story = {
args: {
className: undefined,
icon: <LockSolidIcon />,
title: "Encryption enabled",
subtitle: "Messages here are end-to-end encrypted. Verify XYZ in their profile - tap on their profile picture.",
},
};