闭社主体 forked from https://github.com/tootsuite/mastodon
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.

17 lines
682 B

  1. import React from 'react';
  2. import { List } from 'immutable';
  3. import { action, storiesOf } from '@kadira/storybook';
  4. import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea';
  5. const props = {
  6. onChange: action('changed'),
  7. onPaste: action('pasted'),
  8. onSuggestionSelected: action('suggestionsSelected'),
  9. onSuggestionsClearRequested: action('suggestionsClearRequested'),
  10. onSuggestionsFetchRequested: action('suggestionsFetchRequested'),
  11. suggestions: List([]),
  12. };
  13. storiesOf('AutosuggestTextarea', module)
  14. .add('default state', () => <AutosuggestTextarea value='' {...props} />)
  15. .add('with text', () => <AutosuggestTextarea value='Hello' {...props} />);