mirror of
https://github.com/langgenius/dify.git
synced 2026-02-12 05:54:24 +08:00
Some checks are pending
autofix.ci / autofix (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
Main CI Pipeline / Check Changed Files (push) Waiting to run
Main CI Pipeline / API Tests (push) Blocked by required conditions
Main CI Pipeline / Web Tests (push) Blocked by required conditions
Main CI Pipeline / Style Check (push) Waiting to run
Main CI Pipeline / VDB Tests (push) Blocked by required conditions
Main CI Pipeline / DB Migration Test (push) Blocked by required conditions
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
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="left-8 top-6" />
|
|
<Effect className="bg-util-colors-purple-brand-purple-brand-500 right-10 top-14" />
|
|
<div className="absolute inset-x-0 bottom-4 flex justify-center text-xs text-text-secondary">
|
|
Accent glow
|
|
</div>
|
|
</div>
|
|
),
|
|
}
|