Anvil/assets/Avatar.stories-2aa82e84.js
André Jaenisch e5b80964ed
Updates
2024-02-23 14:08:28 +01:00

11 lines
1.2 KiB
JavaScript

import{A as n}from"./Avatar-ef944b42.js";import"./utils-09ff0c0e.js";import"./index-d94d5794.js";import"./lifecycle-9898a056.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};