
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@pxtrn/storybook-addon-docs-stencil
Advanced tools
Converts stencil.js doc json derived from stencils output target
docs-json to storybook
ArgTypes.
With this addon activated
npm i -D @pxtrn/storybook-addon-docs-stencil
// stencil.config.ts
import { Config } from '@stencil/core';
export const config: Config = {
outputTargets: [
{
type: 'docs-json',
file: 'path/to/docs.json'
}
]
};
//.storybook/main.js
module.exports = {
addons: [
'@storybook/addon-essentials',
'@pxtrn/storybook-addon-docs-stencil',
],
};
//.storybook/preview.js
import { setStencilDocJson } from '@pxtrn/storybook-addon-docs-stencil';
import docJson from 'path/to/docs.json';
if (docJson) setStencilDocJson(docJson);
export const parameters = {
controls: { hideNoControlsWarning: true },
};
//.storybook/preview.js
import { extractArgTypesFactory } from '@pxtrn/storybook-addon-docs-stencil';
/** @type { import('@pxtrn/storybook-addon-docs-stencil').ExtractArgTypesOptions } */
const options = {
excludeCategories: 'porperties',
controlsFor: 'attributes',
eventNameing: 'jsx',
};
export const parameters = {
docs: {
extractArgTypes: extractArgTypesFactory(options),
},
};
excludeCategories: Category[]: categories to exclude from argTypes and docs (default: ['attributes]).controlsFor: 'attributes' | 'properties': for wich category to render controls.eventNameing: 'native' | 'jsx': nameing of the arg key for events (default: 'native'). If jsx the args can be spread <my-component {...args} /> when using JSX to render stories.When using @storybook/web-components or @storybook/html as renderer args and actions do not get bound automatically. This addon includes an optional default renderer that works out of the box
//.storybook/preview.js
import {
extractArgTypesFactory,
stencilRender,
} from '@pxtrn/storybook-addon-docs-stencil';
/** @type { import('@storybook/web-components').Preview } */
const preview = {
render: stencilRender(),
};
export default preview;
stencilRender can be configured by these options:
eventNameing: 'native' | 'jsx': use the same nameing used in ExtractArgTypesOptions (default: 'native)bindEvents: boolean: wheter events/actions should be bound (default: true)eg:
stencilRender({ bindEvents: false });
If not already created by stencil create src/components/my-component/readme.md
If the line <!-- Auto Generated Below --> is not present, stencil will ignore this file.
Everything above this line will be included in storybook
<!-- Auto Generated Below -->
// src/components/my-component/my-component.tsx`
/**
* Everything written here will be included, if readme.md is not present.
*/
@Component({
tag: 'my-component',
styleUrl: 'my-component.css',
shadow: true,
})
If you prefere the inline documentation over the readme, see issue #15.
// your-story.ts
export default {
title: 'My Component',
component: 'my-component',
};
excludeCategories to configure which categories are shown.dashCase properties and attributes are now shown in single sections. Use controlsFor and excludeCategories instead of dashCase.FAQs
Converts stencil.js JsonDoc to storybook ArgTypes
The npm package @pxtrn/storybook-addon-docs-stencil receives a total of 2,980 weekly downloads. As such, @pxtrn/storybook-addon-docs-stencil popularity was classified as popular.
We found that @pxtrn/storybook-addon-docs-stencil demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.