import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import * as NotificationStories from "./src/notification.stories";
import packageInfo from "./package.json";
Notification
Version {packageInfo.version}
Showcase
Properties
Installation
Via NPM
Add the dependency to your consumer app like "@purpurds/notification": "x.y.z"
From outside the monorepo (build-time)
To install this package, you need to setup access to the artifactory. Click here to go to the guide on how to do that.
In MyApp.tsx
import "@purpurds/tokens/index.css";
and
import "@purpurds/notification/dist/styles.css";
In MyComponent.tsx
import { Notification } from "@purpurds/notification";
export const MyComponent = () => {
return (
<div>
<Notification {...someProps}>Some content</Notification>
</div>
);
};