// @flow
import * as React from 'react';
import TextArea from './TextArea';
import notes from './TextArea.stories.md';
export const basic = () => ;
export const withValidation = () => {
const textAreaValidator = value => {
if (!value.includes('www')) {
return {
code: 'nowww',
message: 'Text must have "www" in it',
};
}
return null;
};
return (
);
};
export default {
title: 'Components/Form Elements/Textarea',
component: TextArea,
parameters: {
notes,
},
};