isomtrik-quickchat
Version:
isomtrik-quickchat is a lightweight, real-time chat component built with Stencil JS. It is designed to be seamlessly integrated into web applications, offering customizable and responsive chat functionalities. The module supports both CommonJS and ES modu
54 lines (51 loc) • 1.68 kB
JavaScript
import "./DocumentMessageBubble";
import { html } from "lit";
export default {
title: 'Atoms/DocumentMessageBubble',
component:'document-message',
tags: ['autodocs'],
argTypes: {
bgColor: {control :'color'},
borderWidth: {control: 'text'},
borderColor: {control: 'color'},
borderStyle: {
control: 'select',
options: ['dashed', 'solid', 'dotted', 'double']
},
borderRadius: {control: 'text'},
padding: {control: 'text'},
docName: {control: 'text'},
height: {control: 'text'},
width: {control: 'text'},
documentNameBg: {control: 'color'},
documentNamePadding: {control: 'text'},
time: {control: 'text'}
},
render: (args) => html`
<document-message
.bgColor=${args.bgColor || '#EFF1FA'}
.borderWidth=${args.borderWidth || '20px'}
.borderColor=${args.borderColor}
.borderStyle=${args.borderStyle}
.borderRadius=${args.borderRadius}
.padding=${args.padding || '10px 10px 25px 10px'}
.docName=${args.docName}
.height=${args.height}
.width=${args.width || 'fit-content'}
.documentNameBg=${args.documentNameBg}
.documentNamePadding=${args.documentNamePadding || '10px'}
.time=${args.time || new Date().toISOString()}
></document-message>
`
}
export const Default = {
args: {
bgColor:"#EFF1FA",
borderWidth: "20px",
borderColor: "",
width: "fit-content",
docName: "somedox",
padding: "",
documentNamePadding: "10px "
}
}