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.
38 lines
669 B
38 lines
669 B
3 years ago
|
import React from 'react';
|
||
|
|
||
|
import ListItemSearch from '.';
|
||
|
|
||
|
export default {
|
||
|
title: 'Pages/Swaps/SearchableItemList/ListItemSearch',
|
||
|
id: __filename,
|
||
|
argTypes: {
|
||
|
onSearch: {
|
||
|
action: 'onSearch',
|
||
|
},
|
||
|
error: {
|
||
|
control: 'text',
|
||
|
},
|
||
|
listToSearch: {
|
||
|
control: 'select',
|
||
|
},
|
||
|
fuseSearchKeys: {
|
||
|
control: 'select',
|
||
|
},
|
||
|
searchPlaceholderText: {
|
||
|
control: 'text',
|
||
|
},
|
||
|
defaultToAll: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
shouldSearchForImports: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = (args) => {
|
||
|
return <ListItemSearch {...args} />;
|
||
|
};
|
||
|
|
||
|
DefaultStory.storyName = 'Default';
|