0.1.8 • Published 5 years ago

shortcut-preview v0.1.8

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Shortcut Preview

npm version npm

A React component to preview iOS Shortcuts.

Screenshot

See the component in action on xalien95.github.io/shortcut-preview.

Installation

You can install this component using npm:

npm i shortcut-preview

Usage

import React from 'react';
import ShortcutPreview from 'shortcut-preview';

// JSON file containing a Shortcut converted using 'pblist-parser'
import shortcutData from './shortcut-data.json';

export default class App extends React.Component {
  render() {
    return <ShortcutPreview data={shortcutData} />;
  }
}

You can optionally add a debug property: each action block will then show a LOG button to console.log the contents stored in its state.

export default class App extends React.Component {
  render() {
    return <ShortcutPreview debug data={shortcutData} />;
  }
}

Similar Projects

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago