CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-storybook--addon-backgrounds

Deprecated Storybook addon that throws migration errors directing users to the new package structure in Storybook 9.0

86

1.08x
Overview
Eval results
Files

task.mdevals/scenario-6/

Documentation Display Panel

Build a React component that displays formatted documentation using Storybook's UI components library.

Overview

Create a documentation panel component that displays formatted content including headings, text, collapsible code sections with syntax highlighting, and interactive buttons with tooltips.

Requirements

Display Requirements

The panel should display:

  • A large heading for the title
  • Paragraph text for descriptions
  • A collapsible section containing a code example
  • The code example should have syntax highlighting
  • An icon button with a tooltip that says "Copy Code"
  • A visual separator between the description and code sections

Functionality

  • The component renders a heading with the text "API Documentation" @test
  • The component renders a paragraph with descriptive text @test
  • The collapsible section starts collapsed and can be toggled open @test
  • The code block displays JavaScript code with syntax highlighting @test
  • The icon button displays a tooltip with "Copy Code" text when hovered @test

Implementation

@generates

API

import React from 'react';

/**
 * Documentation panel component that displays formatted content
 * using Storybook's UI components library.
 */
export const DocumentationPanel: React.FC = () => {
  // Component implementation
};

Dependencies { .dependencies }

@storybook/components { .dependency }

Provides UI component library for building Storybook addons, including typography, buttons, overlays, layout components, and utilities for creating rich panel interfaces.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/npm-storybook--addon-backgrounds

tile.json