
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@greenberry/storybook-args
Advanced tools
This package holds the util helper for setting up arguments within Storybook. It will automatically arrange the suited controls based on a given value and speed up declaring any custom arguments.
Add arguments by importing the args helper. This will return an array containing the argsTypes key. Meaning you can spread the object withing the export of the story like so:
const types = args([
{
name: 'name',
value: 'Sander',
},
]);
export default {
title: 'Component/Example',
component: Example,
...types,
};
By default the args util will assume you are trying to pass a string. This means that you only need to pass the name of the argument, any other values would are automatically assigned, for instance the type of the argument.
const types = args([
{
name: 'name',
},
]);
This will result in the following setup.
Storybook has their own documentation about adding new types in the documentation, these can be found here.
FAQs
Create arguments for Storybooks with ease
We found that @greenberry/storybook-args demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.