import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import * as FieldErrorTextStories from "./src/field-error-text.stories";
import packageInfo from "./package.json";
FieldErrorText
Version {packageInfo.version}
This is an internal component used for form fields.
Showcase
Properties
Installation
Via NPM
Add the dependency to your consumer app like "@purpurds/field-error-text": "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/field-error-text/styles";
In MyComponent.tsx
import { FieldErrorText } from "@purpurds/field-error-text";
export const MyComponent = () => {
return (
<div>
<FieldErrorText {...someProps}>Some content</FieldErrorText>
</div>
);
};