mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 16:24:06 +00:00
35 lines
921 B
TypeScript
35 lines
921 B
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import IconButton from './IconButton.vue'
|
|
import IconGroup from './IconGroup.vue'
|
|
|
|
const meta: Meta<typeof IconGroup> = {
|
|
title: 'Components/Button/IconGroup',
|
|
component: IconGroup,
|
|
parameters: {
|
|
layout: 'centered'
|
|
}
|
|
}
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof IconGroup>
|
|
|
|
export const Basic: Story = {
|
|
render: () => ({
|
|
components: { IconGroup, IconButton },
|
|
template: `
|
|
<IconGroup>
|
|
<IconButton @click="console.log('Hello World!!')">
|
|
<i class="icon-[lucide--heart] size-4" />
|
|
</IconButton>
|
|
<IconButton @click="console.log('Hello World!!')">
|
|
<i class="icon-[lucide--download] size-4" />
|
|
</IconButton>
|
|
<IconButton @click="console.log('Hello World!!')">
|
|
<i class="icon-[lucide--external-link] size-4" />
|
|
</IconButton>
|
|
</IconGroup>
|
|
`
|
|
})
|
|
}
|