chore: add more stories (#27403)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
非法操作
2025-10-29 14:33:43 +08:00
committed by GitHub
parent 23b49b8304
commit f092bc1912
100 changed files with 6144 additions and 30 deletions

View File

@@ -0,0 +1,39 @@
/* eslint-disable tailwindcss/classnames-order */
import type { Meta, StoryObj } from '@storybook/nextjs'
import Effect from '.'
const meta = {
title: 'Base/Other/Effect',
component: Effect,
parameters: {
docs: {
description: {
component: 'Blurred circular glow used as a decorative background accent. Combine with relatively positioned containers.',
},
source: {
language: 'tsx',
code: `
<div className="relative h-40 w-72 overflow-hidden rounded-2xl bg-background-default-subtle">
<Effect className="top-6 left-8" />
</div>
`.trim(),
},
},
},
tags: ['autodocs'],
} satisfies Meta<typeof Effect>
export default meta
type Story = StoryObj<typeof meta>
export const Playground: Story = {
render: () => (
<div className="relative h-40 w-72 overflow-hidden rounded-2xl border border-divider-subtle bg-background-default-subtle">
<Effect className="top-6 left-8" />
<Effect className="top-14 right-10 bg-util-colors-purple-brand-purple-brand-500" />
<div className="absolute inset-x-0 bottom-4 flex justify-center text-xs text-text-secondary">
Accent glow
</div>
</div>
),
}