All Projects → amccloud → storybook-addons-abstract

amccloud / storybook-addons-abstract

Licence: MIT License
Storybook addon for linking Abstract layer and collection shares to stories. Example:

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to storybook-addons-abstract

Carbon Design Kit
A versioned, comprehensive kit of the Carbon Design System visual assets (components, iconography, color palettes, grids, templates).
Stars: ✭ 985 (+1463.49%)
Mutual labels:  design, sketch
Symbol Spacer Sketch Plugin
automatically trigger Sketch’s “reset to original size” function when deselecting symbol
Stars: ✭ 86 (+36.51%)
Mutual labels:  design, sketch
Sketch Copy Paste Shadows
Copy & paste only shadow styles from layers without others styles getting in the way.
Stars: ✭ 38 (-39.68%)
Mutual labels:  design, sketch
Macos Ui Kit
💎 The most detailed and accurate macOS UI Kit for Sketch. This Sketch Library includes common Mac interface elements, cursors, and a Touch Bar UI Kit.
Stars: ✭ 551 (+774.6%)
Mutual labels:  design, sketch
Sketchsheets
Free ready to print sketch sheet templates for UX designers
Stars: ✭ 241 (+282.54%)
Mutual labels:  design, sketch
Html Sketchapp Cli
Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
Stars: ✭ 631 (+901.59%)
Mutual labels:  design, sketch
Sketch Better Android Export
Stars: ✭ 61 (-3.17%)
Mutual labels:  design, sketch
Prism
Creates a beautiful artboard color palette with all your 'Document Colors' and their respective color label in a variety of formats.
Stars: ✭ 1,027 (+1530.16%)
Mutual labels:  design, sketch
Miaow
A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing.
Stars: ✭ 2,536 (+3925.4%)
Mutual labels:  design, sketch
Awesome Design
🌟 Curated design resources from all over the world.
Stars: ✭ 13,333 (+21063.49%)
Mutual labels:  design, sketch
Sketch Ios Library
💎 A library of iOS styles replicated in Sketch to speed up your workflow.
Stars: ✭ 264 (+319.05%)
Mutual labels:  design, sketch
safari
Safari Dark/Light theme for Sketch
Stars: ✭ 28 (-55.56%)
Mutual labels:  design, sketch
Make-This
Project files for the Make This video series and community challenges.
Stars: ✭ 16 (-74.6%)
Mutual labels:  design, sketch
Sketch Web Viewer
View and inspect Sketch 43 files in browser
Stars: ✭ 853 (+1253.97%)
Mutual labels:  design, sketch
storybook-addon-grid
⚜️ Column guides that help you align your stories
Stars: ✭ 17 (-73.02%)
Mutual labels:  design, storybook-addons
Data Populator
A plugin for Sketch and Adobe XD to populate your design mockups with meaningful data. Goodbye Lorem Ipsum. Hello JSON.
Stars: ✭ 1,665 (+2542.86%)
Mutual labels:  design, sketch
Weui Design
Design package for WeUI
Stars: ✭ 2,758 (+4277.78%)
Mutual labels:  design, sketch
sketch-git-hooks
Easy trick how to enjoy Git versioning for Sketch files thanks to Git Hooks
Stars: ✭ 12 (-80.95%)
Mutual labels:  design, sketch
sketch-plugin
Design your next Atlassian app with our component libraries and suite of Sketch tools 💎
Stars: ✭ 51 (-19.05%)
Mutual labels:  sketch
nudge-resize-sketch-plugin
Sketch Plugin to quickly resize a layer with keyboard shortcuts
Stars: ✭ 25 (-60.32%)
Mutual labels:  sketch

Storybook addon for Abstract integration

An addon for Storybook that allows you to link to Abstract layers and collections in the storybook panel!

Example

Examples

Install

Requires storybook@^6.0.0

npm install storybook-addons-abstract

Usage

within main.js:

module.exports = {
  stories: ['../src/**/*.stories.@(tsx|mdx)'],
  addons: [
    '@storybook/addon-links',
    '@storybook/addon-essentials',
    '@storybook/preset-create-react-app',
+   'storybook-addons-abstract/register'
  ]
};

or using the old addons.js:

import "storybook-addons-abstract/register";

with the new Component Story Format API:

import React from "react";
import { BlogIndex, BlogGallery, BlogPost } from "../";

export default {
  parameters: {
    abstract: {
      // Copy a collection or layer share url from Abstract
      url: "https://share.goabstract.com/733ca894-a4bb-43e3-a2b1-dd27ff6d00c4"
    }
  }
};

// Name your stories after layers in the collection
export const blogIndex = () => (
  <BlogIndex />
);

export const blogGallery = () => (
  <BlogGallery />
);

export const blogPost = () => (
  <BlogPost />
);

or using the old stories:

import React from "react";
import { storiesOf } from "@storybook/react";

storiesOf("Blog", module)
  .addParameters({
    abstract: {
      // Copy a collection or layer share url from Abstract
      url: "https://share.goabstract.com/733ca894-a4bb-43e3-a2b1-dd27ff6d00c4"
    }
  })
   // Name your stories after layers in the collection
  .add("Blog Index", () => <BlogIndex />)
  .add("Blog Gallery", () => <BlogGallery />)
  .add("Blog Post", () => <BlogPost />);

Options

Option Value Default Description
theme "light" | "dark" | "system" "light" Control appearance of embed
chromeless boolean false Hide embed interface, displaying only the preview until mouseover

Change embed background color

{
  abstract: {
    url: "https://share.goabstract.com/733ca894-a4bb-43e3-a2b1-dd27ff6d00c4",
    options: {
      theme: "dark"
    }
  }
}

Hide embed interface

{
  abstract: {
    url: "https://share.goabstract.com/733ca894-a4bb-43e3-a2b1-dd27ff6d00c4",
    options: {
      chromeless: true
    }
  }
}
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].