4.0.15 • Published 4 years ago

@nteract/transform-vdom v4.0.15

Weekly downloads
30,469
License
BSD-3-Clause
Repository
github
Last release
4 years ago

@nteract/transform-vdom

This package contains a React component for rendering virtual DOM elements returned by libraries like vdom for Python.

Installation

$ yarn add @nteract/transform-vdom
$ npm install --save @nteract/transform-vdom

Usage

The example below shows how we can use the component within this package to render a virtual DOM contain a div with some headers and an image.

import { TransformVDOM } from "@nteract/transform-vdom";

export default () => {
  return (
    <TransformVDOM
      data={{
        tagName: "div",
        attributes: { style: { color: "DeepPink" } },
        children: [
          { tagName: "h1", attributes: {}, children: "Wahoo" },
          { tagName: "h1", attributes: {}, children: null },
          {
            tagName: "img",
            attributes: { width: "100px", height: "100px", src: "about:blank" },
            children: []
          }
        ]
      }}
    />
  );
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:transform-vdom label.

License

BSD-3-Clause

4.0.16-alpha.0

4 years ago

4.0.15

4 years ago

4.0.15-alpha.0

4 years ago

4.0.14-alpha.0

4 years ago

4.0.13-alpha.0

4 years ago

4.0.12-alpha.0

4 years ago

4.0.11

4 years ago

4.0.11-alpha.0

4 years ago

4.0.10-alpha.0

4 years ago

4.0.9-alpha.0

4 years ago

4.0.8

4 years ago

4.0.8-alpha.0

4 years ago

4.0.7-alpha.0

4 years ago

4.0.6-alpha.0

4 years ago

4.0.5

4 years ago

4.0.5-alpha.0

4 years ago

4.0.4-alpha.0

4 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.4-alpha.0

5 years ago

3.0.3-alpha.0

5 years ago

3.0.2-alpha.0

5 years ago

3.0.0-alpha.0

6 years ago

2.2.5

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago