import { html } from '@skhemata/skhemata-base';
import '../skhemata-faq.js';
import { argTypes, ArgTypes, Story } from './argTypes';
export default {
title: 'Wordpress/SkhemataFaq/SkhemataFaq',
component: 'skhemata-faq',
argTypes: {
apiWordpress: argTypes.apiWordpress,
postsPerPage: argTypes.postsPerPage,
pagerType: argTypes.pagerType,
faqPagePath: argTypes.faqPagePath,
slug: argTypes.slug,
navigate: argTypes.navigate,
skhemataFaqTextColor: argTypes.skhemataFaqTextColor,
skhemataFaqListTitleColor: argTypes.skhemataFaqListTitleColor,
skhemataFaqCategoriesTextColor: argTypes.skhemataFaqCategoriesTextColor,
skhemataFaqCategoriesBackgroundColor:
argTypes.skhemataFaqCategoriesBackgroundColor,
},
parameters: {
widgetCode: `
`,
},
};
const Template: Story = ({
apiWordpress = {
url: 'https://wp.thrinacia.com/wp-json/wp/v2',
},
faqPagePath = '',
postsPerPage = 10,
pagerType = 'infinite',
slug = '',
skhemataFaqTextColor,
skhemataFaqListTitleColor,
skhemataFaqCategoriesTextColor,
skhemataFaqCategoriesBackgroundColor,
}: ArgTypes) => html`
`;
export const Example = Template.bind({});
Example.args = {
apiWordpress: {
url: 'https://wp.thrinacia.com/wp-json/wp/v2',
},
postsPerPage: 10,
pagerType: "infinite",
};
Example.parameters = {
docs: {
source: {
code: `
`,
},
},
};