@devtools-ds/node
A component for rendering DOM Node style opening and closing HTML tags.
Installation
npm i @devtools-ds/node
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):
This project follows the all-contributors specification. Contributions of any kind welcome!