Anvil/assets/Avatar.stories-d6fccfcf.js
André Jaenisch 7608654359
Updates
2024-03-03 15:38:10 +01:00

11 lines
1.2 KiB
JavaScript

import{A as n}from"./Avatar-dac7a148.js";import"./utils-09ff0c0e.js";import"./index-9669f5df.js";import"./lifecycle-96ebe68d.js";import"./index-9ff358fd.js";import"./spread-8a54911c.js";const v={title:"Atoms/Avatar",component:n,tags:["autodocs"],argTypes:{avatar:{control:"text",description:"An URL to the image"},displayName:{control:"text",description:"If no image is provided, derive initials"}}},a={args:{avatar:"",displayName:"Jane Doe"}},e={args:{...a.args,avatar:"https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280"}};var r,t,o;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`{
args: {
avatar: '',
displayName: 'Jane Doe'
}
}`,...(o=(t=a.parameters)==null?void 0:t.docs)==null?void 0:o.source}}};var s,i,c;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{
args: {
...Plain.args,
avatar: 'https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280'
}
}`,...(c=(i=e.parameters)==null?void 0:i.docs)==null?void 0:c.source}}};const u=["Plain","ProfilePicture"];export{a as Plain,e as ProfilePicture,u as __namedExportsOrder,v as default};