From e9afb41bed9a723876cf1cf95d636b2ea498a6b3 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Mon, 11 Sep 2023 18:33:17 -0700
Subject: docs: :memo: working on autogenerated docs

---
 docs/src/components/ClassPropertyRef.tsx | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 docs/src/components/ClassPropertyRef.tsx

(limited to 'docs/src/components/ClassPropertyRef.tsx')

diff --git a/docs/src/components/ClassPropertyRef.tsx b/docs/src/components/ClassPropertyRef.tsx
new file mode 100644
index 00000000..46664c4c
--- /dev/null
+++ b/docs/src/components/ClassPropertyRef.tsx
@@ -0,0 +1,26 @@
+import React from "react";
+
+interface ClassPropertyRefProps {
+  name: string;
+  details: string;
+  required: boolean;
+}
+
+export default function ClassPropertyRef(props: ClassPropertyRefProps) {
+  const details = JSON.parse(props.details);
+
+  return (
+    <>
+      <div>
+        <h4 style={{ display: "inline-block", marginRight: "10px" }}>
+          {props.name}
+        </h4>
+        <span style={{ color: "red", fontSize: "11px", marginRight: "4px" }}>
+          {props.required && "REQUIRED"}
+        </span>
+        <span>{details.type && `(${details.type})`}</span>
+      </div>
+      <p>{details.description}</p>
+    </>
+  );
+}
-- 
cgit v1.2.3-70-g09d2

