1 && "bg-docs-bg-surface rounded",
+ level >= 3 && "mb-1"
+ )}
+ >
+ {parameters.map((parameter, key) => {
+ return (
+ <>
+ {parameter.children.length > 0 && (
+
+ {parameter.children && (
+
+ )}
+
+ )}
+ {parameter.children.length === 0 &&
+ getSummary(parameter, key, false)}
+ >
+ )
+ })}
+
+ )
+}
+
+export default ParameterTypesItems
diff --git a/www/apps/docs/src/components/ParameterTypes/index.tsx b/www/apps/docs/src/components/ParameterTypes/index.tsx
new file mode 100644
index 0000000000..388917fad6
--- /dev/null
+++ b/www/apps/docs/src/components/ParameterTypes/index.tsx
@@ -0,0 +1,33 @@
+import clsx from "clsx"
+import React from "react"
+import ParameterTypesItems from "./Items"
+
+export type Parameter = {
+ name: string
+ type: string
+ optional?: boolean
+ defaultValue?: string
+ description?: string
+ children?: Parameter[]
+}
+
+type ParameterTypesType = {
+ parameters: Parameter[]
+} & React.HTMLAttributes