@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
20 lines (19 loc) • 530 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Avatar } from './avatar';
const story = {
title: 'Widgets/Avatar',
component: Avatar,
args: {
dimension: 'regular',
src: 'https://xsgames.co/randomusers/avatar.php?g=male',
},
argTypes: {
dimension: {
options: ['small', 'regular', 'big'],
control: { type: 'radio' },
},
},
};
export default story;
const Template = args => _jsx(Avatar, { ...args });
export const Default = Template.bind({});