UNPKG

@allakando/allakando-web-ui

Version:

Allakando's web component library

18 lines (17 loc) 1.56 kB
const o=`# Allakando Chat Message\r \r This component is for displaying the comments during a chat converstation. The component has two attributes, image and headertitle\r \r ## image\r \r This attribute will set the image of the component. If the image url is invalid then the first two letters will be set as icons with a primary color background\r \r ## headertitle\r \r This attribute will set the header title.\r `,s={title:"Atomic Components/Chat-Message",component:"ako-chat-message",tags:["autodocs"],parameters:{docs:{description:{component:o}}},argTypes:{image:{control:{type:"text"}},headertitle:{control:{type:"text"}}}},e=t=>`<ako-chat-message ${t.image?`image="${t.image}"`:""} ${t.headertitle?`headertitle="${t.headertitle}"`:""} > Härligt! Det är en av mina favoritkurser Vilken mattebok använder du? </ako-chat-message>`;e.args={image:"https://storage.googleapis.com/production-coachnannyportal/contact_persons/fredrik-fridlund.jpg",headertitle:"Allakando AI"};var a,r,n;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:'args => {\n return `<ako-chat-message \n ${args.image ? `image="${args.image}"` : ""}\n ${args.headertitle ? `headertitle="${args.headertitle}"` : ""}\n >\n Härligt! Det är en av mina favoritkurser Vilken mattebok använder du?\n </ako-chat-message>`;\n}',...(n=(r=e.parameters)==null?void 0:r.docs)==null?void 0:n.source}}};const i=["Template"];export{e as Template,i as __namedExportsOrder,s as default};