@devtools-ds/node

A component for rendering DOM Node style opening and closing HTML tags.

Usage no npm install needed!

<script type="module">
  import devtoolsDsNode from 'https://cdn.skypack.dev/@devtools-ds/node';
</script>

README

@devtools-ds/node

A component for rendering DOM Node style opening and closing HTML tags.

Installation

npm i @devtools-ds/node
# or with yarn
yarn add @devtools-ds/node

Then to use the component in your code just import it!

import { Node } from "@devtools-ds/node";

Usage

The label can be a string or a React component.


const properties = {
  class: 'test',
  style: 'font-weight: bold;'
};

<Node name="div" properties={properties} />
  Content
<Node closing name="div" />

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tyler Krupicka

📖 💻 🎨 💡 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!