1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

More stories

This commit is contained in:
Quentin Gliech
2022-11-15 15:12:01 +01:00
parent 7dec625114
commit 2b0677763d
4 changed files with 77 additions and 0 deletions

View File

@@ -1,3 +1,17 @@
// Copyright 2022 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type { Meta, StoryObj } from "@storybook/react"; import type { Meta, StoryObj } from "@storybook/react";
import Button from "./Button"; import Button from "./Button";

View File

@@ -13,9 +13,16 @@
// limitations under the License. // limitations under the License.
type Props = { type Props = {
/** The label of the button */
children: string; children: string;
/** Makes the button more compact */
compact?: boolean; compact?: boolean;
/** Uses the 'ghotst' (outline) alternative */
ghost?: boolean; ghost?: boolean;
/** Disables all interactions with the button */
disabled?: boolean; disabled?: boolean;
} & React.HTMLProps<HTMLButtonElement>; } & React.HTMLProps<HTMLButtonElement>;

View File

@@ -0,0 +1,28 @@
// Copyright 2022 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type { Meta, StoryObj } from "@storybook/react";
import LoadingScreen from "./LoadingScreen";
const meta: Meta<typeof LoadingScreen> = {
title: "UI/Loading Screen",
component: LoadingScreen,
tags: ["docsPage"],
};
export default meta;
type Story = StoryObj<typeof LoadingScreen>;
export const Basic: Story = {};

View File

@@ -0,0 +1,28 @@
// Copyright 2022 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type { Meta, StoryObj } from "@storybook/react";
import LoadingSpinner from "./LoadingSpinner";
const meta: Meta<typeof LoadingSpinner> = {
title: "UI/Loading Spinner",
component: LoadingSpinner,
tags: ["docsPage"],
};
export default meta;
type Story = StoryObj<typeof LoadingSpinner>;
export const Basic: Story = {};