errorText.stories.mdx

PHOTO EMBED

Mon Mar 25 2024 17:04:53 GMT+0000 (Coordinated Universal Time)

Saved by @rafal_rydz

import {ErrorText} from "ui";
import {ArgsTable, Meta, Story} from "@storybook/addon-docs";

<Meta title="Components/Text/ErrorText/old" component={ErrorText}/>

export const Template = (args) => <ErrorText {...args} />;

# ErrorText

This component renders a styled `<span>` for any error text.

## Props

<ArgsTable story="Default"/>

## Examples

<Story name="Default" args={{text: "Example"}}>
    {Template.bind({})}
</Story>
content_copyCOPY