Files
modrinth/packages/ui/src/stories/buttons/CheckCircleButton.stories.ts
T
Calum H.andtdgao 7c67cca7a7 feat(instance-sync): screenshots sync (#7218)
* pnpm prepr

* feat(instance-sync): screenshots sync

* fix: prepr + fmt

* fix: qa

* feat: screenshit editor

* feat: screenshot* editor qa

* fix: qa

* fix: lint

* fix: aecsocket rev

* qa: a11y tab navigation focus is cut off

* qa: Change “Edited” badge to be bg-highlight-green

* qa: friends list input style wrong

* qa: toolbar width + labels

* qa: multiselect changes

* qa: anim changes

* qa: card hover colors

* qa: copy feedback

* qa: hide date

* qa: instance icon in overflow/contextmenu

* qa: spacing

* qa: group empty state text

* qa: drag preview badge

* qa: group deletion skip warning if no screenshots

* qa: redesign editor

* qa: remove screenshot parent/edited badge stuff

* qa: control font size consistency

* qa: viewer copy control

* qa: editor fixes

* qa: redirect on disable screenshot sync

* qa: margin police

* fix: crop

* fix: qa

* feat: initial start on basic instance file syncing (#7220)

* qa: final

* qa: final 2

* fix: lint + prepr

* fix: copy

* fix: screenshot editing outside of app causing ghost files in db + sync fail rollback impl

* chore: split up

* fix: fmt

---------

Co-authored-by: tdgao <mr.trumgao@gmail.com>
2026-08-27 16:49:46 +00:00

42 lines
1.1 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import CheckCircleButton from '../../components/base/buttons/CheckCircleButton.vue'
const meta = {
title: 'Buttons/CheckCircleButton',
component: CheckCircleButton,
args: {
checked: false,
disabled: false,
},
render: (args) => ({
components: { CheckCircleButton },
setup() {
return { args }
},
template: /*html*/ `
<div class="w-96">
<CheckCircleButton v-bind="args">Fabric 26.2</CheckCircleButton>
</div>
`,
}),
} satisfies Meta<typeof CheckCircleButton>
export default meta
type Story = StoryObj<typeof meta>
export const Playground: Story = {}
export const States: Story = {
render: () => ({
components: { CheckCircleButton },
template: /*html*/ `
<div class="flex w-96 flex-col gap-1" role="radiogroup" aria-label="Example choices">
<CheckCircleButton :checked="true">Selected choice</CheckCircleButton>
<CheckCircleButton :checked="false">Unselected choice</CheckCircleButton>
<CheckCircleButton :checked="false" disabled>Disabled choice</CheckCircleButton>
</div>
`,
}),
}