@devtools-ds/node
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@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!

Dependents (1)

Package Sidebar

Install

npm i @devtools-ds/node

Weekly Downloads

42

Version

1.2.1

License

MIT

Unpacked Size

29.3 kB

Total Files

20

Last publish

Collaborators

  • tylerkrupicka