diff --git a/website/src/components/markdown.tsx b/website/src/components/markdown.tsx index 15d5152..6e823a8 100644 --- a/website/src/components/markdown.tsx +++ b/website/src/components/markdown.tsx @@ -478,11 +478,13 @@ export function ChartPlaceholder({ height = 200, label }: { height?: number; lab Comparison table ========================================================================= */ -export function PropsTable({ +export function ComparisonTable({ title, + headers, rows, }: { title?: string; + headers: [string, string, string]; rows: Array<[string, string, string]>; }) { return ( @@ -511,7 +513,7 @@ export function PropsTable({ > - {["Prop", "Type", "Default"].map((header) => { + {headers.map((header) => { return ( - {rows.map(([prop, type, def]) => { + {rows.map(([feature, them, us]) => { return ( - + - {prop} + {feature} - {type} + {them} - {def} + {us} ); diff --git a/website/src/root.tsx b/website/src/root.tsx index 9c87729..7609b4d 100644 --- a/website/src/root.tsx +++ b/website/src/root.tsx @@ -11,19 +11,10 @@ import { export function Layout({ children }: { children: React.ReactNode }) { return ( - + - {/* - Apply .dark class based on OS prefers-color-scheme. - Inline in to prevent FOUC. Listener handles live OS changes. - */} -