UNPKG

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

20 lines (16 loc) 554 B
import { html } from 'lit'; import { styleMap } from 'lit/directives/style-map.js'; import './button.css'; export const Button = ({ primary, backgroundColor = null, size, label, onClick }) => { const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary'; return html` <button type="button" class=${['storybook-button', `storybook-button--${size || 'medium'}`, mode].join(' ')} style=${styleMap({ backgroundColor })} @click=${onClick} > ${label} </button> `; };