Socket
Book a DemoInstallSign in
Socket

law-render

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

law-render

**Law Render** is a TypeScript React component for rendering legal documents, statutes, or regulations in a structured and visually appealing way. It provides a flexible tree-based rendering system for legal text, supporting a wide range of legal document

latest
npmnpm
Version
0.8.0
Version published
Maintainers
1
Created
Source

Law Render

Law Render is a TypeScript React component for rendering legal documents, statutes, or regulations in a structured and visually appealing way. It provides a flexible tree-based rendering system for legal text, supporting a wide range of legal document structures (articles, sections, points, tables, footnotes, etc.).

Features

  • Hierarchical Rendering: Supports complex legal document structures (articles, sections, points, tables, footnotes, etc.).
  • Customizable Output: Uses semantic HTML and utility classes for easy styling and integration.
  • TypeScript Support: Fully typed props and data structures for safety and developer experience.
  • Extensible: Easily add support for new node types or customize rendering.

Installation

npm install law-render
# or
yarn add law-render

Usage

import React from 'react';
import { LawRender, LawTree } from 'law-render';

const lawTree: LawTree = [
  {
    levelName: "article",
    identifier: "Article 1",
    content: "This is the content of Article 1.",
    children: [
      {
        levelName: "section",
        identifier: "Section 1.1",
        content: "Section content here."
      }
    ]
  }
];

export default function App() {
  return <LawRender treeToRender={lawTree} />;
}

Props

PropTypeDescription
treeToRenderLawTreeThe tree structure representing the law.

License

MIT

FAQs

Package last updated on 15 Jul 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.