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
56 lines (53 loc) • 1.73 kB
JavaScript
import "./IncomingTextMessageBubble"
import { html } from "lit"
export default {
title: 'Atoms/IncomingTextMessageBubble',
component:'incoming-text-message-bubble',
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'},
imageSrc: {control: 'text'},
width: {control :'text'},
height: {control:'text'},
time: {control: 'text'},
textContent: {control: 'text'},
alignSelf: {control: 'text'},
fontFamily: {control: 'text'}
},
render: (args) => html`
<incoming-text-message-bubble
.bgColor=${args.bgColor || '#EFF1FA'}
.borderWidth=${args.borderWidth}
.borderColor=${args.borderColor}
.borderStyle=${args.borderStyle}
.borderRadius=${args.borderRadius}
.padding=${args.padding}
\ .height=${args.height || 'fit-content'}
.width=${args.width || 'fit-content'}
.time=${args.time || new Date().toISOString()}
.textContent= ${args.textContent}
.alignSelf=${args.alignSelf || 'left'}
.fontFamily=${args.fontFamily}
></incoming-text-message-bubble>
`
}
export const Default = {
args: {
bgColor:"#EFF1FA",
width: "110px",
height: "auto",
padding: "10px 10px 10px 10px",
borderRadius: "6px",
time: "",
textContent: "",
alignSelf: "left"
}
}