Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Storybook: The Workshop for Modern Frontends

When developing an app, you usually depend on several things, such as a running backend, a user session, a specific user role, or test data. The problem is that the current app's state often does not reflect the state you need for your…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

When developing an app, you usually depend on several things, such as a running backend, a user session, a specific user role, or test data.



The problem is that the current app's state often does not reflect the state you need for your current task. Eventually, the more you add to your app, the harder it gets to reach certain states or pages. Worse, you might need to add workarounds to your code to force a specific state. Typical examples are switching between user roles or multi-step forms where every code change repeatedly forces you to complete previous steps.



Storybook simplifies working on those hard-to-reach spots in your codebase by providing an isolated workspace. It is a separate framework-agnostic app within your repository. You can do everything from developing components to documenting all different component states and showcasing them nicely using MDX with clickable demos and interactively changeable component arguments. You can also test your components within Storybook. Storybook's add-on API allows you to tailor it to your needs.




All examples use @storybook/angular v8 APIs but work similarly in other framework integrations such as React, Vue, Svelte, etc.







Tell stories with your components



The fundamental building block of Storybook is a "story", which is usually stored in a file ending with *.stories.ts. A story represents a specific use case or state of a component.




Depending on the frontend framework, the file ending can be *.stories.tsx, *.stories.js, etc.





// `meta` describes the defaults for all stories within this file
const meta: Meta<ButtonComponent> = {
title: "Example/Buttons",
component: ButtonComponent,
args: {
// Default component input arguments
label: 'Button',
primary: false,
}
}

export default meta;
type Story = StoryObj<ButtonComponent>;

export const Primary: Story = {
args: {
primary: true
}
}

export const Secondary: Story = {
args: {
primary: false
}
}






The code above creates two new menu entries, Example/Buttons/Primary and Example/Buttons/Secondary, using the passed in args to render the component.



Storybook in the browser, showing the menu with entries for the






Setting up docs-pages



A "Docs" page is either auto-generated and shows all stories of a *.stories.ts file on one page or can be created manually and filled with custom content.



To automatically generate it, set an additional property in your stories file's "meta" block.




Most "meta" level properties can also be set globally. Learn how to set up auto-generated docs globally in the official Storybook documentation.





const meta: Meta<ButtonComponent> = {
title: 'Example/Button',
component: ButtonComponent,
args: {
label: 'Button',
primary: false,
},
// automatically generate docs-pages for stories within this file
tags: ['autodocs'],
};






Out of the box, the auto-generated page contains all the stories, an additional "Show code" button to view the story code, and controls to change the component properties. Docs pages can help others in your project understand how to use a component and provide additional guidelines.



See the official documentation to learn more about creating docs pages.



The image shows an auto-generated docs-page with the






Testing within Storybook



The whole testing topic deserves an entire post, but in 2024, it is also impossible to introduce Storybook without mentioning it.



There are several ways to integrate Storybook into your test suite, such as re-using story objects in your *.spec.ts files, showing accessibility flaws directly in Storybook, or writing component and integration tests using "play" functions. I will briefly introduce the latter.



A play function is part of a story object and uses Testing Library underneath. Play functions run directly in Storybook but can also be run in CI.




import { userEvent, expect } from '@storybook/test';

// [...]

export const Primary: Story = {
args: {
primary: true,
label: 'Button',
},
play: ({ canvas }) => {
const button = canvas.getByRole('button');
userEvent.hover(button);

expect(button).toHaveClass('button--hovered');
}
};






The screenshot below shows a failing test with the current and expected state.



The image shows a failing test inside the Storybook app



Let me re-use the multi-step form example from the post introduction to give you a more advanced theoretical example. You could render the entire form and run through all the steps with different inputs to test your validators and other form logic, all while working on the form component in the same browser tab, which improves catching regressions early on.






Summary



Use Storybook for projects at any scale. While it is easy to integrate Storybook into an existing project, in my opinion, new projects should use it right from the beginning.



The fact that Storybook is decoupled from the backend and slices your requirements into multiple stories naturally forces you to make smarter component API decisions.



Play functions are a perfect addition to the story-authoring format. With Testing Library underneath, you can test your components from a user's perspective rather than querying DOM nodes, for example, by ID or CSS classes.



The various options for showing stories in Storybook allow you to build your documentation for a specific audience. Depending on your requirements, you can use Storybook as a developer playground or showcase an entire design system.






  • To learn all about Storybook, a good starting point is the tutorials section on the Storybook website.

  • Create a Stackblitz demo with a framework of your choice at storybook.new and play around with the examples right in the browser.


  • @yannbf from the Storybook team created Mealdrop as a showcase for a larger Storybook, using many add-ons.

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Storybook: The Workshop for Modern Frontends
id: 6f1be564-9d97-47fd-b502-189065ba0432
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-27"
        description = "YARA Signature for "
    strings:
        $str = "Storybook: The Workshop for Mo" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Storybook The Workshop for Modern Fronte")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Storybook The Workshop for Modern Fronte*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Storybook The Workshop for Modern Fronte"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Storybook: The Workshop for Modern Frontends

Thematisch verwandte Begriffe: Storybook, Workshop, Modern, Frontends · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag