![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@storybook/web-components
Advanced tools
@storybook/web-components is a tool for developing UI components in isolation for web components. It allows developers to build, test, and document components independently, which can improve the development workflow and ensure components are robust and reusable.
Component Story Creation
This feature allows developers to create stories for their web components. A story is a function that returns a rendered component, which can be used to showcase different states and variations of the component.
import { html } from 'lit-html';
export default {
title: 'MyComponent',
};
export const Default = () => html`<my-component></my-component>`;
Interactive Component Testing
This feature allows developers to interactively test components using knobs. Knobs are UI controls that allow users to dynamically edit props and see the changes in real-time, which is useful for testing different states and configurations of a component.
import { html } from 'lit-html';
import { withKnobs, text } from '@storybook/addon-knobs';
export default {
title: 'MyComponent',
decorators: [withKnobs],
};
export const WithKnobs = () => {
const label = text('Label', 'Hello Storybook');
return html`<my-component label="${label}"></my-component>`;
};
Documentation
This feature allows developers to add documentation to their components directly within Storybook. It supports custom documentation pages, which can include usage instructions, API details, and more.
import { html } from 'lit-html';
export default {
title: 'MyComponent',
parameters: {
docs: {
page: () => html`<h1>MyComponent Documentation</h1><p>This is a custom web component.</p>`
}
}
};
FAQs
Storybook web-components renderer
The npm package @storybook/web-components receives a total of 53,597 weekly downloads. As such, @storybook/web-components popularity was classified as popular.
We found that @storybook/web-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.