mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-20 12:29:39 +00:00
## Summary Replace all the `IconTextButton`s with `Button` ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7603-WIP-Component-Button-Migraion-3-IconTextButton-2cd6d73d365081b7b742fa2172dc2ba8) by [Unito](https://www.unito.io)
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import Button from '@/components/ui/button/Button.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, Button },
|
|
template: `
|
|
<div style="height: 200px; display: flex; align-items: center; justify-content: center;">
|
|
<MoreButton>
|
|
<template #default="{ close }">
|
|
<Button
|
|
variant="textonly"
|
|
@click="() => { close() }"
|
|
>
|
|
<i class="icon-[lucide--download] size-4" />
|
|
<span>Settings</span>
|
|
</Button>
|
|
|
|
<Button
|
|
variant="textonly"
|
|
@click="() => { close() }"
|
|
>
|
|
<i class="icon-[lucide--scroll-text] size-4" />
|
|
<span>Profile</span>
|
|
</Button>
|
|
</template>
|
|
</MoreButton>
|
|
</div>
|
|
`
|
|
})
|
|
}
|