-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathRoomListToast.stories.tsx
More file actions
40 lines (35 loc) · 1.02 KB
/
RoomListToast.stories.tsx
File metadata and controls
40 lines (35 loc) · 1.02 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
/*
* 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 { fn } from "storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { RoomListToast } from "./RoomListToast";
const meta = {
title: "Room List/RoomListToast",
component: RoomListToast,
tags: ["autodocs"],
args: {
type: "section_created",
onClose: fn(),
},
argTypes: {
type: {
control: "select",
options: ["section_created"],
},
},
decorators: [
(Story) => (
<div style={{ position: "relative", width: "320px", height: "100px", backgroundColor: "grey" }}>
<Story />
</div>
),
],
} satisfies Meta<typeof RoomListToast>;
export default meta;
type Story = StoryObj<typeof meta>;
export const SectionCreated: Story = {};