Files
modrinth/packages/ui/src/stories/skin/SkinLikeTextButton.stories.ts
T
Calum H. 84b91f32f8 fix: skins QA problems + flow change (#6216)
* fix: skins backend bugs + apply flow

* fix: caching structure

* feat: collapse already duplicated skins + fix moj api spam

* fix: doc

* fix: flatten migrations

* feat: remove default cape/cape override concept

* fix: fmt + lint

* feat: remove SelectCapeModal for inline cape list

* feat: qa

* feat: virtualisation of skins sections + fix texture/model cache

* fix: lint

* fix: virt bugs + renderer fixes

* fix: qa bugs

* fix: doc

* fix: re-add click impulse anim from prototypes + re-add interact anim length cap

* fix: regressions

* devex: split up SkinPreviewrenderer

* fix: lint

* fix: introduce dynamic mode in virtual-scroll.ts

* feat: qa

* fix: nametag bug + remove minecon skin pack suffix

* feat: pain (literally)

* feat: user agent on moj reqs

* feat: impl per account flush queue for operations

* fix: breadcrumb

* chore: i18n pass

* fix: lint + prep + check

* fix: misalignments
2026-05-27 22:22:24 +00:00

51 lines
1.0 KiB
TypeScript

import { PlusIcon } from '@modrinth/assets'
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import SkinLikeTextButton from '../../components/skin/SkinLikeTextButton.vue'
const meta = {
title: 'Skin/SkinLikeTextButton',
component: SkinLikeTextButton,
args: {
selected: false,
tooltip: 'Add a skin',
dragActive: false,
dropzone: false,
},
render: (args) => ({
components: { PlusIcon, SkinLikeTextButton },
setup() {
return { args }
},
template: /* html */ `
<div class="w-[156px]">
<SkinLikeTextButton v-bind="args">
<template #icon>
<PlusIcon class="size-8" />
</template>
Add skin
<template #subtitle>Drag and drop</template>
</SkinLikeTextButton>
</div>
`,
}),
} satisfies Meta<typeof SkinLikeTextButton>
export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {}
export const Selected: Story = {
args: {
selected: true,
},
}
export const DragActive: Story = {
args: {
dragActive: true,
dropzone: true,
},
}