import React from 'react';
import {storiesOf} from '@storybook/react';
import {number, text} from '@storybook/addon-knobs';

import TextMaxLength from '../../Components/TextMaxLength/src';

export default storiesOf('Components | TextMaxLength', module)
    .add('default', () => {
        const maxLength = number('MaxLength', 500);
        const value = text('Number', 'Lorem ipsum dolores');
        return (
            <TextMaxLength
                maxLength={maxLength}
                value={value}
            />
        )
    });
