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
35 lines (29 loc) • 791 B
JavaScript
import { html } from 'lit';
import './Timestamp.js';
export default {
title: 'Atoms/Timestamp',
component: 'timestamp-element',
argTypes: {
time: { control: 'date' },
color: { control: 'color' },
fontSize: { control: 'text' },
textAlign: { control: 'select', options: ['left', 'center', 'right'] },
fontFamily: { control: 'text' }
},
args: {
color: 'gray',
fontSize: '12px',
textAlign: 'right',
fontFamily: 'Arial, sans-serif',
time: new Date().toISOString(),
},
};
export const Default = (args) => html`
<timestamp-element
time=${args.time}
color=${args.color}
fontSize=${args.fontSize}
textAlign=${args.textAlign}
fontFamily=${args.fontFamily}
></timestamp-element>
`;