
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@button-inc/storybook-progressive-enhancement-addon
Advanced tools
Toggle between progressivly enhanced states
An addon to allow users to toggle between HTML only, css + html, and css + html + javascript views for each of their components to see how they progressively enhance.
Install the addon:
npm i @button-inc/storybook-progressive-enhancement-addon
Add the addon to your storybook, in .storybook/main.js:
module.exports = {
stories: ['../stories/*.stories.mdx', '../stories/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@button-inc/storybook-progressive-enhancement-addon'], // <- Include this part in your addons array
};
The components will render with a template displaying the provided information. Pass in parameters to your story, following the example below:
parameters: {
details: {
title: "Button",
description: "The base description that always shows up",
allEnabledDescription: 'Description to show with all fields enabled',
cssEnabledDescription: 'Description to show with CSS enabled',
htmlOnlyDescription: 'Description to show with just html enabled',
usageCode: `
import component from @button-inc/component
<Component x={true}/>
`,
props: [
{
name: 'size',
type: 'string',
description: 'size of the element'
},
{
name: 'variant',
type: 'string',
description: 'variant of the element'
}
]
},
},
FAQs
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.