All Projects → mertkahyaoglu → Storybook Zeplin

mertkahyaoglu / Storybook Zeplin

Licence: mit
Storybook addon to view Zeplin resources in story panel

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Storybook Zeplin

Storybook Readme
React Storybook addon to render README files in github style
Stars: ✭ 511 (+864.15%)
Mutual labels:  storybook
Next Boilerplate
A well-structured production ready Next.js boilerplate with Typescript, Redux, Jest, Enzyme, Express.js, Sass, Css, EnvConfig, Fetch, Reverse Proxy, Bundle Analyzer and Built-in Project CLI. https://pankod.github.io/next-boilerplate/
Stars: ✭ 936 (+1666.04%)
Mutual labels:  storybook
Quantum
The default pack of components and layout principles that dictates Catho Frontend applications.
Stars: ✭ 39 (-26.42%)
Mutual labels:  storybook
React Cdk
under development - React Component Development Kit with Storybook
Stars: ✭ 583 (+1000%)
Mutual labels:  storybook
Antd Theme Editor
Customize and preview ant design theme and css styles overrides.
Stars: ✭ 22 (-58.49%)
Mutual labels:  storybook
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-39.62%)
Mutual labels:  storybook
React Event Timeline
A responsive event timeline in React.js
Stars: ✭ 504 (+850.94%)
Mutual labels:  storybook
Kohei.dev
🌎 A Production-level Single Page App with Server Side Rendering
Stars: ✭ 50 (-5.66%)
Mutual labels:  storybook
Readteractive
Tool for writing and generating interactive books.
Stars: ✭ 23 (-56.6%)
Mutual labels:  storybook
Storybook Addon A11y
REPO/PACKAGE MOVED - Storybook addon to help, improving accessibility within you're react components.
Stars: ✭ 37 (-30.19%)
Mutual labels:  storybook
Storybook Deployer
Deploy your storybook as a static site
Stars: ✭ 670 (+1164.15%)
Mutual labels:  storybook
Ravepro
RavePro
Stars: ✭ 18 (-66.04%)
Mutual labels:  storybook
Vue Play
🍭 A minimalistic framework for demonstrating your Vue components
Stars: ✭ 969 (+1728.3%)
Mutual labels:  storybook
Storybook Addon Material Ui
Addon for storybook wich wrap material-ui components into MuiThemeProvider. 📃 This helps and simplifies development of material-ui based components.
Stars: ✭ 513 (+867.92%)
Mutual labels:  storybook
Moveit
🚀 NLW #4 | React+ TypeScript + NextJS + StyledComponents + Firebase + MongoDb +Axios
Stars: ✭ 39 (-26.42%)
Mutual labels:  storybook
React Typescript Web Extension Starter
🖥 A Web Extension starter kit built with React, TypeScript, SCSS, Storybook, Jest, EsLint, Prettier, Webpack and Bootstrap. Supports Google Chrome + Mozilla Firefox + Brave Browser 🔥
Stars: ✭ 510 (+862.26%)
Mutual labels:  storybook
React Redux Saga Starter
Basic, Opinionated starter kit for React+Redux+Redux Saga with support for SCSS CSS Modules, Storybook, JEST testing, and ESLint
Stars: ✭ 12 (-77.36%)
Mutual labels:  storybook
Gatsby Starter Typescript Deluxe
A Gatsby starter with TypeScript, Storybook, Styled Components, Framer Motion, Jest, and more.
Stars: ✭ 50 (-5.66%)
Mutual labels:  storybook
Storybook Addon Preview
Storybook Addon Preview can show user selected knobs in various framework code in Storybook
Stars: ✭ 43 (-18.87%)
Mutual labels:  storybook
React Atomic Design
🔬 Boilerplate with the methodology Atomic Design using a few cool things.
Stars: ✭ 972 (+1733.96%)
Mutual labels:  storybook
Zeplin Storybook Addon

npm version Monthly download GitHub license Netlify Status


storybook-zeplin

Storybook addon that embeds Zeplin resources such as screens and components in the addon panel for better design-development workflow.

Zeplin Storybook Addon

Demo

Requirements

This addon should work with any framework. If you find a case that the addon does not work, please open an issue.

Getting started

1. Install

npm install --save-dev storybook-zeplin
# yarn add -D storybook-zeplin

2. Add Zeplin access token to your environment variables

In order to access your Zeplin resources, you need to provide your access token. You can create one from https://app.zeplin.io/profile/developer. This token needs to provided as an environment variable called STORYBOOK_ZEPLIN_TOKEN. You can create .env file in your project's root folder and define it in there or you can use your command line for it.

# .env
STORYBOOK_ZEPLIN_TOKEN="eyJhbGciOiJIUzI1N.."

⚠️ Disclaimer

Please note that this token can be accessed from client side. For security reasons, it would be safe to use this addon on localhost or internal network.

3. Register the addon in main.js

// .storybook/main.js
module.exports = {
    addons: ["storybook-zeplin/register"],
};

If you're using [email protected];

// .storybook/addons.js
import "storybook-zeplin/register";

4. Add a Zeplin link to your story

Storybook Zeplin takes parameter zeplinLink as an array of elements containing a name and a link or just a string for the link. For the link, you can use full web URL or app URI of Zeplin components/screens.

Example of adding Zeplin link to all stories in a file:

export default {
    title: "Button",
    component: Button,
    parameters: {
        zeplinLink: "https://app.zeplin.io/project/5e7a6d478204d59183a1c76b/styleguide/components?coid=5eac833c5f1f2f1cb19f4f19",
    },
};

export const Default = () => <Button>Click me</Button>;
export const Secondary = () => <Button secondary>Click me</Button>;

Default.story = {
    name: "Primary Button",
};

Secondary.story = {
    name: "Secondary Button",
};

Example of adding multiple Zeplin links to a story:

export default {
    title: "Button",
    component: Button,
};

export const Default = () => <Button>Click me</Button>;
export const Secondary = () => <Button secondary>Click me</Button>;

Default.story = {
    name: "Responsive Button",
    parameters: {
        zeplinLink: [
            {
                name: "Desktop",
                link: "zpl://components?pid=pid1&coid=coid1",
            },
            {
                name: "Tablet",
                link: "zpl://components?pid=pid1&coid=coid2",
            },
            {
                name: "Mobile",
                link: "zpl://components?pid=pid1&coid=coid3",
            },
        ],
    },
};

Development

Run following commands in separate tabs to start development

npm run watch
npm run storybook

License

MIT © Mert Kahyaoğlu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].