Skip to content

Build your personal knowledge base with Trilium Notes

client/property sheet component: add support for CSS class names

Adorian Doran3ce2af9abe8e
diff --git a/apps/client/src/widgets/react/PropertySheet.tsx b/apps/client/src/widgets/react/PropertySheet.tsx
index d359bd41bb..0053ea4ddd 100644
--- a/apps/client/src/widgets/react/PropertySheet.tsx
+++ b/apps/client/src/widgets/react/PropertySheet.tsx
@@ -1,15 +1,16 @@
import { ComponentChildren } from "preact";
+import clsx from "clsx";
import "./PropertySheet.css";
-export function PropertySheet({ children }: { children: ComponentChildren }) {
- return <div className="property-sheet-table">
+export function PropertySheet({ className, children }: { className?: string, children: ComponentChildren }) {
+ return <div className={clsx("property-sheet-table", className)}>
{children}
</div>
}
-export function PropertySheetItem({label, children}: {label: string, children: ComponentChildren}) {
+export function PropertySheetItem({className, label, children}: {className?: string, label: string, children: ComponentChildren}) {
return <dl>
<dt>{label}</dt>
- <dd>{children}</dd>
+ <dd className={className}>{children}</dd>
</dl>
}
\ No newline at end of file