Skip to content

[Bug]: Autodocs produce invalid code example #25896

Open
@sacrosanctic

Description

@sacrosanctic

Describe the bug

show code button produces code examples that look like <Proxy<RenderContext> /> when using the following:

<Template let:args>
  <MyComponent {...args} />
</Template>

Expected behavior

Should say:

  • <MyComponent />

Screenshots and/or logs

image

To Reproduce

Repro

  1. npm i
  2. npx storybook@latest init
  3. npm i --save-dev @storybook/addon-svelte-csf
  4. add stories
  5. npm run storybook
  6. view NotWorking and Working and click show code

System

No response

Additional context

Originally posted @ storybookjs/addon-svelte-csf#166 but could not find related issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Empathy Backlog

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions