project-nomad/admin/inertia/components/markdoc/Table.tsx
Chris Sherwood 1a95b84a8c feat(docs): polish docs rendering with desert-themed components
Add custom Markdoc renderers for images, links, paragraphs, code blocks,
inline code, and horizontal rules. Restyle existing heading, table, and
list components to match the desert tactical color palette. Add 8
screenshots to docs with polished image presentation (rounded corners,
shadow, captions). Constrain content width for readability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:41:30 -08:00

38 lines
1.1 KiB
TypeScript

export function Table({ children }: { children: React.ReactNode }) {
return (
<div className="overflow-x-auto my-6 rounded-lg border border-desert-tan-lighter shadow-sm">
<table className="min-w-full divide-y divide-desert-tan-lighter">
{children}
</table>
</div>
)
}
export function TableHead({ children }: { children: React.ReactNode }) {
return <thead className="bg-desert-green-dark">{children}</thead>
}
export function TableBody({ children }: { children: React.ReactNode }) {
return <tbody className="divide-y divide-desert-tan-lighter/50 bg-white">{children}</tbody>
}
export function TableRow({ children }: { children: React.ReactNode }) {
return <tr className="hover:bg-desert-sand/40 transition-colors">{children}</tr>
}
export function TableHeader({ children }: { children: React.ReactNode }) {
return (
<th className="px-5 py-3 text-left text-sm font-semibold text-desert-white tracking-wide">
{children}
</th>
)
}
export function TableCell({ children }: { children: React.ReactNode }) {
return (
<td className="px-5 py-3.5 text-sm text-desert-green-darker">
{children}
</td>
)
}