silverwolf-x/project / packages /next /src /next-devtools /dev-overlay /container /runtime-error /component-stack-pseudo-html.stories.tsx
silverwolf-x's picture
download
raw
762 Bytes
import type { Meta, StoryObj } from '@storybook/react'
import { PseudoHtmlDiff } from './component-stack-pseudo-html'
import { withShadowPortal } from '../../storybook/with-shadow-portal'
const meta: Meta<typeof PseudoHtmlDiff> = {
component: PseudoHtmlDiff,
parameters: {
layout: 'fullscreen',
},
decorators: [withShadowPortal],
}
export default meta
type Story = StoryObj<typeof PseudoHtmlDiff>
export const TextMismatch: Story = {
args: {
reactOutputComponentDiff: `<Page>
<Layout>
<div>
- Server content
+ Client content`,
},
}
export const ReactUnifiedMismatch: Story = {
args: {
reactOutputComponentDiff:
'<Page>\n <Layout>\n <div>asd\n- <p>Server content</p>\n+ <p>Client content</p>',
},
}

Xet Storage Details

Size:
762 Bytes
·
Xet hash:
d17b96d1f54c881e2602b3dc717b809c79f75ba13f62789c5166dd258e232a92

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.