diff --git a/packages/uui-avatar/lib/uui-avatar.stories.ts b/packages/uui-avatar/lib/uui-avatar.stories.ts new file mode 100644 index 000000000..5fafa939a --- /dev/null +++ b/packages/uui-avatar/lib/uui-avatar.stories.ts @@ -0,0 +1,73 @@ +import { html } from 'lit'; +import './uui-avatar.element'; +import type { Meta, StoryObj } from '@storybook/web-components'; +import { spread } from '../../../storyhelpers/spread-directive'; + +import '@umbraco-ui/uui-badge/lib'; + +const meta: Meta = { + component: 'uui-avatar', + title: 'Displays/Avatar/Avatar', + args: { + name: 'Umbraco HQ', + }, + render: args => { + return html``; + }, +}; + +export default meta; +type Story = StoryObj; + +export const Default: Story = {}; + +export const Image: Story = { + args: { + imgSrc: 'https://i.pravatar.cc/150?img=0', + }, +}; + +export const Sizing: Story = { + args: { + 'font-size': '32px', + }, + render: args => { + return html``; + }, +}; + +export const Colors: Story = { + args: { + color: 'white', + 'background-color': 'blue', + }, + render: args => { + return html``; + }, +}; + +/** + * Slotted content might overflow, use the `overflow` attribute to hide overflow. + */ +export const SlottedContent: Story = { + args: { + name: '', + }, + render: args => { + return html`overflow`; + }, +}; + +export const Badge: Story = { + render: args => { + return html` + 2 + `; + }, +};