@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
19 lines (18 loc) • 2.41 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Accordion } from './accordion';
import { AccordionItem } from './accordion-item';
const story = {
title: 'Actions/Accordion',
component: Accordion,
};
export default story;
const Template = args => (_jsxs(Accordion, { defaultOpen: "3", ...args, children: [_jsx(AccordionItem, { value: "1", summary: "Item 1", children: "Yes, they are. Wonderflow extracts insights from your competitors public data too. If a competitor public feedback is not currently in our Feedback data lake you can request it and it will be added." }), _jsx(AccordionItem, { value: "2", summary: "Item 2", children: "Well, it is our specialty. We have the most granular and performing ontologies for your industry, ready to be used, without any manual configuration needed on your side.On average, our VoC analysis covers 100 to 150 topics for each product category (3X more granular than any other platform) organized in a multilevel hierarchy, so that you can explore them from most generic ones to more specifics. For each topic, our artificial intelligence can determine its sentiment on a 3-level scale: positive, negative, neutral (used when a topic appears in a question, say coming from a customer support ticket)." }), _jsx(AccordionItem, { value: "3", summary: "Item 3", children: "By design, Wonderflow can integrate all pre-existing feedback solutions (like Medallia, Sprinklr, Salesforce, Bazaarvoice, etc.) that your company uses to manage customer feedback. Wonderflow can eventually setup custom integration (both in and out) using API." })] }));
export const Default = Template.bind({});
Default.args = {
showSeparators: true,
};
const NestedTemplate = args => (_jsxs(Accordion, { defaultOpen: "1", ...args, children: [_jsxs(AccordionItem, { value: "1", summary: "Item 1", children: ["Item 1", _jsxs(Accordion, { defaultOpen: "3", ...args, children: [_jsx(AccordionItem, { value: "1", summary: "Item 1", children: "Item 1" }), _jsx(AccordionItem, { value: "2", summary: "Item 2", children: "Item 2" }), _jsx(AccordionItem, { value: "3", summary: "Item 3", children: "Item 3" })] })] }), _jsx(AccordionItem, { value: "2", summary: "Item 2", children: "Item 2" }), _jsx(AccordionItem, { value: "3", summary: "Item 3", children: "Item 3" })] }));
export const Nested = NestedTemplate.bind({});
Nested.args = {
showSeparators: true,
};