Socket
Socket
Sign inDemoInstall

@storybook/docs-tools

Package Overview
Dependencies
Maintainers
29
Versions
821
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/docs-tools

Shared utility functions for frameworks to implement docs


Version published
Weekly downloads
4.6M
decreased by-3.47%
Maintainers
29
Created
Weekly downloads
 

Package description

What is @storybook/docs-tools?

The @storybook/docs-tools package is a part of the Storybook ecosystem, designed to enhance the documentation capabilities within Storybook. It provides tools and utilities to help developers create better documentation for their UI components, integrating seamlessly with Storybook's UI component development environment.

What are @storybook/docs-tools's main functionalities?

MDX Support

Enables writing documentation using MDX (Markdown for JSX), which allows for rich and interactive documentation. This feature lets you embed live examples and props tables directly in your markdown files.

import { Meta, Story, ArgsTable, Primary } from '@storybook/addon-docs/blocks';
<Meta title='Your Component Title' />
<Story name='Default View' height='400px'>
  <YourComponent />
</Story>
<ArgsTable of={YourComponent} />

Component Props Table

Automatically generates and displays a table of properties (props) for your components. This is useful for documenting the different props that can be used with a component, including types, default values, and descriptions.

import { ArgsTable } from '@storybook/addon-docs/blocks';
<ArgsTable of={YourComponent} />

Custom Doc Blocks

Allows the creation of custom documentation blocks within MDX files, enabling more structured and styled documentation. This feature supports various blocks like Title, Subtitle, Description, and more.

import { Title, Subtitle, Description, Primary } from '@storybook/addon-docs/blocks';
<Title>My Custom Component</Title>
<Subtitle>Component Subtitle</Subtitle>
<Description>{`This is a detailed description of the custom component.`}</Description>
<Primary>/* Render your component here */</Primary>

Other packages similar to @storybook/docs-tools

Changelog

Source

7.0.0-alpha.54 (November 25, 2022)

Bug Fixes
  • Vite: Support environment variables in viteFinal define config #19905
Maintenance
  • Build: split lib/addons into manager & preview part, move code to manager-api #19952
  • TypeScript: Satisfy stricter compilerOption rules #19953
  • API: Rename api to manager-api #19944
  • API: Add preview-api package #19749
Build
  • Build: Improve security in Github actions #19949
Dependencies
  • NextJS: Add Next13 peer dependency #19932

Readme

Source

Storybook Docs Utils

Shared utility functions for frameworks to implement docs:

  • ArgType extraction
  • Dynamic snippet generation
  • Is the user using docs or controls?

This library is used by most framework packages so it and its dependencies should be minimized

Keywords

FAQs

Package last updated on 25 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc