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
38 lines (35 loc) • 751 B
JavaScript
import { k as ke, s as se } from './ClockMark-2dd98d26.js';
const Image = ({
src,
alt = '',
width = 'auto',
height = 'auto',
borderRadius = '0px',
border = 'none',
borderColor = 'transparent',
borderStyle = 'solid',
objectFit,
placeholderImage,
}) => {
return ke`
<img
src=${src}
alt=${alt}
@error=${(e) => {
if (placeholderImage) {
e.target.src = placeholderImage;
}
}}
style=${se({
width,
height,
borderRadius,
border: `${borderStyle} ${border} ${borderColor}`,
objectFit,
})}
class="storybook-image"
/>
`;
};
export { Image as I };
//# sourceMappingURL=Image-d7f40652.js.map