mirror of
https://github.com/penpot/penpot.git
synced 2026-10-07 03:06:16 +00:00
* ✨ Add new components to storybook * ✨ Changes after review * ✨ More changes after review * ✨ Add file history components to the application * ✨ Unnest selector
40 lines
753 B
JavaScript
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",
|
|
},
|
|
};
|