mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
import { Download, ScrollText } from 'lucide-vue-next'
|
|
|
|
import IconTextButton from './IconTextButton.vue'
|
|
import MoreButton from './MoreButton.vue'
|
|
|
|
const meta: Meta<typeof MoreButton> = {
|
|
title: 'Components/Button/MoreButton',
|
|
component: MoreButton,
|
|
parameters: {
|
|
layout: 'centered'
|
|
},
|
|
argTypes: {}
|
|
}
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof MoreButton>
|
|
|
|
export const Basic: Story = {
|
|
render: () => ({
|
|
components: { MoreButton, IconTextButton, Download, ScrollText },
|
|
template: `
|
|
<div style="height: 200px; display: flex; align-items: center; justify-content: center;">
|
|
<MoreButton>
|
|
<template #default="{ close }">
|
|
<IconTextButton
|
|
type="transparent"
|
|
label="Settings"
|
|
@click="() => { close() }"
|
|
>
|
|
<template #icon>
|
|
<Download :size="16" />
|
|
</template>
|
|
</IconTextButton>
|
|
|
|
<IconTextButton
|
|
type="transparent"
|
|
label="Profile"
|
|
@click="() => { close() }"
|
|
>
|
|
<template #icon>
|
|
<ScrollText :size="16" />
|
|
</template>
|
|
</IconTextButton>
|
|
</template>
|
|
</MoreButton>
|
|
</div>
|
|
`
|
|
})
|
|
}
|