penpot/frontend/src/app/main/ui/ds/notifications/actionable.stories.jsx
Alonso Torres c215214120
✨ Add new components to storybook (#5632)
* ✨ Add new components to storybook

* ✨ Changes after review

* ✨ More changes after review

* ✨ Add file history components to the application

* ✨ Unnest selector
2025-01-28 12:34:15 +01:00

40 lines
753 B
JavaScript

import * as React from "react";
import Components from "@target/components";
const { Actionable } = Components;
export default {
title: "Notifications/Actionable",
component: Actionable,
argTypes: {
variant: {
options: ["default", "error"],
control: { type: "select" },
},
acceptLabel: {
control: { type: "text" },
},
cancelLabel: {
control: { type: "text" },
},
},
args: {
variant: "default",
acceptLabel: "Update",
cancelLabel: "Dismiss",
},
render: ({ ...args }) => (
<Actionable {...args}>
Message for the notification <a href="#">more info</a>
</Actionable>
),
};
export const Default = {};
export const Error = {
args: {
variant: "error",
},
};