Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/components

Package Overview
Dependencies
Maintainers
12
Versions
1965
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/components

Core Storybook Components

  • 8.5.0-alpha.10
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.2M
increased by8.25%
Maintainers
12
Weekly downloads
 
Created

What is @storybook/components?

The @storybook/components package provides a set of reusable components specifically designed for building UIs in Storybook. These components are used within Storybook's own UI but are also available for developers to use in their own stories. They include basic UI elements such as buttons, inputs, icons, typography, and more complex components like syntax-highlighted code blocks and controls for live-editing component props.

What are @storybook/components's main functionalities?

Buttons

Provides styled button components that can be used in stories.

{"import { Button } from '@storybook/components';

export const MyButton = () => <Button>Click me</Button>;"}

Typography

Includes components for displaying titles, subtitles, and text with consistent styling.

{"import { Title, Subtitle } from '@storybook/components';

export const MyTypography = () => (
  <>
    <Title>This is a title</Title>
    <Subtitle>This is a subtitle</Subtitle>
  </>
);"}

Form Controls

Contains various form elements like text inputs and textareas for use in stories.

{"import { Input, Textarea } from '@storybook/components';

export const MyForm = () => (
  <>
    <Input placeholder='Enter text' />
    <Textarea placeholder='Enter multiline text' />
  </>
);"}

Icons

Provides a set of icons that can be easily included in stories.

{"import { Icons } from '@storybook/components';

export const MyIcons = () => <Icons icon='check' />;"}

Syntax Highlighter

Allows for the display of syntax-highlighted code blocks within stories.

{"import { SyntaxHighlighter } from '@storybook/components';

export const MyCodeBlock = () => (
  <SyntaxHighlighter language='javascript'>
    {`const myFunction = () => console.log('Hello, world!');`}
  </SyntaxHighlighter>
);"}

Other packages similar to @storybook/components

Keywords

FAQs

Package last updated on 23 Nov 2024

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc