Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

design-system-sandbox

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

design-system-sandbox

> design-system-sandbox

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Design System Sandbox

design-system-sandbox

Design System Sandbox is an in-browser editor to prototype with design systems in React. Based on react-live.

Once you install the sandbox, import your design system components and they will all be available in the in-browser editor.

Use it for

• Prototyping layouts in JSX
• Pair-programming and trainings
• Build example snippets

Currently supports React components and JSX markup. Add code you would add inside a render() method.

How to install

There are two ways to use the sandbox:

Import the Editor component into your application to use with your design system
  1. Run yarn add design-system-sandbox

  2. Export your design system components into a scope object to make them available for the editor, i.e.:

  import Button from "my-design-system/core/Button";
  import Card from "my-design-system/core/Card";
  import Tabs from "my-design-system/core/Tabs";

  const scope = {
    Button,
    Card,
    Tabs
  };

export { scope };
  1. Import the Editor component into your application:
  import { Editor } from "design-system-sandbox"
  1. Pass your scope object into the scope prop, and pass the editor placeholder code into the code prop
  <Editor code={`<Button>Click me</Button>`} scope={scope} />

You can also define an HTML tag for your editor object with a tag prop. Default is div

  <Editor tag='main' code={`<Button>Click me</Button>`} scope={scope} />
Use the Demo sandbox application with your design system

Coming Soon 💁‍♀️

License

MIT © dfosco

FAQs

Package last updated on 04 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc