Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

903 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import OAuthButtons from "@editor/auth/ui/OAuthButtons";
import "@editor/auth/ui/auth.css";

/**
 * The OAuth provider buttons the login page renders
 */
const meta: Meta<typeof OAuthButtons> = {
  title: "Auth/OAuth Buttons",
  component: OAuthButtons,
  parameters: { layout: "centered" },
  args: {
    onProviderClick: () => {},
    isSubmitting: false,
    enabledProviders: ["google", "github", "apple", "azure"],
  },
};
export default meta;
type Story = StoryObj<typeof OAuthButtons>;

export const Vertical: Story = {
  render: (args) => (
    <div style={{ width: 320 }}>
      <OAuthButtons {...args} layout="vertical" />
    </div>
  ),
};
export const Grid: Story = {
  render: (args) => <OAuthButtons {...args} layout="grid" />,
};
export const Icons: Story = {
  render: (args) => <OAuthButtons {...args} layout="icons" />,
};