You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
726 B
22 lines
726 B
8 years ago
|
import React from 'react';
|
||
8 years ago
|
import { storiesOf } from '@kadira/storybook';
|
||
8 years ago
|
import CharacterCounter from 'mastodon/features/compose/components/character_counter';
|
||
8 years ago
|
|
||
|
storiesOf('CharacterCounter', module)
|
||
|
.add('no text', () => {
|
||
|
const text = '';
|
||
8 years ago
|
return <CharacterCounter text={text} max={500} />;
|
||
8 years ago
|
})
|
||
|
.add('a few strings text', () => {
|
||
|
const text = '0123456789';
|
||
8 years ago
|
return <CharacterCounter text={text} max={500} />;
|
||
8 years ago
|
})
|
||
|
.add('the same text', () => {
|
||
|
const text = '01234567890123456789';
|
||
8 years ago
|
return <CharacterCounter text={text} max={20} />;
|
||
8 years ago
|
})
|
||
|
.add('over text', () => {
|
||
|
const text = '01234567890123456789012345678901234567890123456789';
|
||
8 years ago
|
return <CharacterCounter text={text} max={10} />;
|
||
8 years ago
|
});
|