mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
35 lines
900 B
TypeScript
35 lines
900 B
TypeScript
import { Meta } from "@storybook/react";
|
|
import { CookieConsent } from "../src";
|
|
import { defaultStoryProps } from "./defaults/storyProps";
|
|
import { DefaultTemplate } from "./defaults/template";
|
|
|
|
const meta: Meta = {
|
|
title: "CookieConsent",
|
|
component: CookieConsent,
|
|
argTypes: {
|
|
children: {
|
|
control: {
|
|
type: "text",
|
|
},
|
|
},
|
|
},
|
|
parameters: {
|
|
controls: { expanded: true },
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
export const Default = DefaultTemplate.bind({});
|
|
Default.args = defaultStoryProps;
|
|
|
|
// stories
|
|
export * from "./stories/acceptOnScroll.story";
|
|
export * from "./stories/additionalButtons.story";
|
|
export * from "./stories/customStyling.story";
|
|
export * from "./stories/flippedButtons.story";
|
|
export * from "./stories/muiButtons.story";
|
|
export * from "./stories/onAccept.story";
|
|
export * from "./stories/overlay.story";
|
|
export * from "./stories/rainbows.story";
|