
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@ju-skinner/sw-doc-components
Advanced tools
We started off using Storybook to document our Stencil Web Components. With Stencil you have framework integrations or Output Targets, we were using React. Instead of having multiple versions of Storybook (WebComponents, React, etc), we elected to recreate the common components we used within Storybook (ArgsTable and Canvas).
The docArgsTable component can be used to show a static table of arg types for a given component as a way to document its interface.
| name | description |
|---|---|
| docSource | The docs-json output type from Stencil. During compiliation Stencil will generate a JSON file with all of the components metadata. You can read more about docs-json here. It expects the components key. |
| componentName | The name of the component to lookup. |
The Canvas component is a wrapper, featuring a series of buttons to view the various Source snippets.
| name | description |
|---|---|
| mdxSource | An object of key/value pairs. Each key will render a button that will show the source code. |
import { DocArgsTable } from '@ju-skinner/sw-doc-components';
import { components } from '../../../../dist/docs.json';
<DocArgsTable componentName='pds-radio' docSource={components} />
output

import { DocCanvas } from '@ju-skinner/sw-doc-components';
<DocCanvas mdxSource={{
react: `<PdsRadio componentId="message1" label="Label" helperMessage="This is short message text." />`,
webComponent: `<pds-radio component-id="message1" label="Label" helper-message="This is short message text." />`
}}>
<pds-radio component-id="message1" label="Label" helper-message="This is short message text." />
</DocCanvas>
output
Default state

Active Tab

FAQs
Documentation components
We found that @ju-skinner/sw-doc-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.