New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

storybook-addon-adobe-xd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-adobe-xd

> A adobe xd design reference tool

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Storybook Adobe XD

A adobe xd design reference tool

Installation

  yarn add storybook-addon-adobe-xd --dev

addons.js

import 'storybook-addon-adobe-xd/register'

Usage

MDX format

import { Meta, Story, Preview } from '@storybook/addon-docs/blocks'
import { WithAdobePreview } from 'storybook-addon-adobe-xd'

<Meta title="Example" />

<Preview>
  <Story name="default">
    <WithAdobePreview previewId="insert-id-here">
      <h1>Hello World</h1>
    </WithAdobePreview>
  </Story>
</Preview>

CSF format

import { WithAdobePreview } from 'storybook-addon-adobe-xd'

export const helloWorld = () => (
  <WithAdobePreview previewId="insert-id-here">
    <h1>Hello World</h1>
  </WithAdobePreview>
)

Keywords

storybook

FAQs

Package last updated on 23 Jun 2020

Did you know?

Socket

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.

Install

Related posts