最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - How to display a component's internal code in storybook - Stack Overflow

programmeradmin2浏览0评论

I am creating a storybook with Angular 19 where I want to display a story's internal code when we click "Show Code". The "Show Code" section displays the story's usage instead of its internal code. I am aware that that's how it is intended, but I am trying to customise this behaviour.

Output for a "Button" story: Show screenshot

This shows the code as:

    <storybook-button
  [primary]="true"
  [label]="'Button'"
  (onClick)="onClick($event)"
></storybook-button>
发布评论

评论列表(0)

  1. 暂无评论