@skhemata/skhemata-blog
Version:
Skhemata Blog Web Component. This web component provides several sub components in addition to main component, allowing featured blogs, blog listing and blog post display.
39 lines (35 loc) • 813 B
text/typescript
import { html } from '@skhemata/skhemata-base';
import '../skhemata-blog.js';
import { SkhemataBlogSearch } from '../src/component/SkhemataBlogSearch.js';
import { argTypes, ArgTypes, Story } from './argTypes.js';
export default {
title: 'Wordpress/SkhemataBlog/SkhemataBlogSearch',
component: 'skhemata-blog',
argTypes: {
blogPagePath: argTypes.blogPagePath,
},
};
const Template: Story<ArgTypes> = ({
blogPagePath = '',
}: ArgTypes) => html`
<skhemata-blog-search
blogPagePath=${blogPagePath}
>
</skhemata-blog-search>
`;
export const Example = Template.bind({});
Example.args = {
blogPagePath: '',
}
Example.parameters = {
docs: {
source: {
code: `
<skhemata-blog-search
blog-page-path="${Example.args.blogPagePath}"
>
</skhemata-blog-search>
`,
},
},
}