mediawiki-skins-Vector/stories/SearchBox.stories.js

19 lines
549 B
JavaScript
Raw Normal View History

import mustache from 'mustache';
import '../resources/skins.vector.styles/SearchBox.less';
import { searchBoxData, searchBoxDataWithCollapsing, searchBoxTemplate,
SEARCH_TEMPLATE_PARTIALS
} from './SearchBox.stories.data';
export default {
title: 'SearchBox'
};
export const searchBoxWithoutCollapsing = () => `
${mustache.render( searchBoxTemplate, searchBoxData, SEARCH_TEMPLATE_PARTIALS )}
`;
export const searchBoxWithCollapsing = () => `
${mustache.render( searchBoxTemplate, searchBoxDataWithCollapsing, SEARCH_TEMPLATE_PARTIALS )}
`;