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
79 lines (75 loc) • 2.25 kB
JavaScript
import { html } from 'lit';
import { ClosedHead } from './ClosedHead';
export default {
title: 'Molecules/CloseHead',
component: ClosedHead,
tags: ['autodocs'],
argTypes: {
padding: {control: 'text'},
image: {
control: {
type: 'object',
properties: {
src: { control: 'text' },
alt: { control: 'text' },
width: { control: 'text' },
height: { control: 'text' },
borderRadius: { control: 'text' },
}
}
},
text: {
control: {
type: 'object',
properties: {
content: { control: 'text' },
color: { control: 'color' },
fontSize: { control: 'text' },
fontWeight: { control: 'select', options: ['normal', 'bold', 'bolder', 'lighter'] },
fontStyle: { control: 'select', options: ['normal', 'italic', 'oblique'] },
textAlign: { control: 'select', options: ['left', 'center', 'right'] },
}
}
},
lastSeenText: { control: 'text' },
lastSeenTextColor: { control: 'color' },
lastSeenTextFontSize: { control: 'text' },
textHref: { control: 'text' },
onFirstSvgClick: { action: 'firstSvgClicked' },
onSecondSvgClick: { action: 'secondSvgClicked' },
},
args: {
image: {
src: '/assets/images/iso-img.svg',
alt: 'Nature image',
width: '45px',
height: '45px',
borderRadius: '50%',
},
text: {
content: 'Kristin Watson',
color: 'black',
fontSize: '18px',
textAlign: 'left',
fontWeight: 'bolder',
fontStyle: 'normal',
},
lastSeenText: 'Last seen today at 10:07 am',
lastSeenTextColor: 'gray',
lastSeenTextFontSize: '12px',
textHref: '/',
},
};
export const Default = (args) => html`
<close-head
.image=${args.image}
.text=${args.text}
.lastSeenText=${args.lastSeenText}
.lastSeenTextColor=${args.lastSeenTextColor}
.lastSeenTextFontSize=${args.lastSeenTextFontSize}
.textHref=${args.textHref}
.onFirstSvgClick=${args.onFirstSvgClick}
.onSecondSvgClick=${args.onSecondSvgClick}
.padding=${args.padding}
></close-head>
`;