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
50 lines (46 loc) • 1.23 kB
JavaScript
import { Image } from './Image';
import { fn } from '@storybook/test';
export default {
title: 'Atoms/Image',
tags: ['autodocs'],
render: (args) => Image(args),
argTypes: {
src: { control: 'text' },
alt: { control: 'text' },
width: { control: 'text' },
height: { control: 'text' },
borderRadius: { control: 'text' },
border: { control: 'text' },
borderColor: { control: 'color' },
borderStyle: { control: 'select', options: ['solid', 'dotted', 'dashed', 'double', 'groove', 'ridge', 'inset', 'outset'] },
objectFit: {control: 'select', options: ['contain', 'fill', 'cover', 'none']}
},
args: {
onClick: fn(),
},
};
export const Default = {
args: {
src: '/assets/images/iso-img.svg',
alt: 'Nature image',
width: '45px',
height: '45px',
borderRadius: '8px',
border: '2px',
borderColor: 'black',
borderStyle: 'solid',
objectFit: 'contain'
},
};
export const Rounded = {
args:{
src:'/assets/images/iso-img.svg',
alt:'Nature image',
width:'45px',
height:'45px',
borderRadius:'50%',
border:"0px",
borderColor:'black',
borderStyle:'solid',
},
};