Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
storybook-darkmode-vue
Advanced tools
npm i storybook-darkmode-vue -D
yarn add storybook-darkmode-vue -D
Develop Vue application that provides darkmode
with Storybook.
Light Mode | Dark Mode |
---|---|
Use either already made up DarkModeWrapper
,
// stories
import { storiesOf } from '@storybook/vue';
import DarkModeWrapper from 'storybook-darkmode-vue/DarkModeWrapper';
import DarkModeSample from './DarkModeSample';
storiesOf('Sample', module).add('sample1', () => ({
data: () => ({}),
components: {
DarkModeWrapper,
DarkModeSample,
},
methods: {},
template: `
<div>
<DarkModeWrapper v-slot="{isDarkMode}">
<DarkModeSample :is-dark-mode="isDarkMode"/>
</DarkModeWrapper>
</div>
`,
}));
OR personally make Wrapper.
import { addons } from '@storybook/addons'
const channel = addons.getChanel();
channel.on('STORYBOOK_DARK_MODE_VUE, () => {
// ...
});
channel.off('STORYBOOK_DARK_MODE_VUE', () => {
// ...
});
Need to register as following:
// addons.js
import 'storybook-darkmode-vue/register'
See CONTRIBUTING.md
.
FAQs
Storybook addons supporting darkmode in vue app
The npm package storybook-darkmode-vue receives a total of 50 weekly downloads. As such, storybook-darkmode-vue popularity was classified as not popular.
We found that storybook-darkmode-vue 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.