mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 12:33:18 +00:00
30 lines
722 B
TypeScript
30 lines
722 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react'
|
|
|
|
import { PersonalInformation } from './'
|
|
|
|
const meta = {
|
|
component: PersonalInformation,
|
|
tags: ['autodocs'],
|
|
title: 'Profile/Personal information',
|
|
} satisfies Meta<typeof PersonalInformation>
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
avatar: 'https://picsum.photos/200',
|
|
email: 'your_email@domain.com',
|
|
name: 'John Doe',
|
|
onAvatarChange: () => {
|
|
console.info('avatar changed')
|
|
},
|
|
onLogout: () => {
|
|
console.info('logout')
|
|
},
|
|
onNameChange: () => {
|
|
console.info('name changed')
|
|
},
|
|
},
|
|
}
|