The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { Html, HtmlBuilder } from "foldkit/html"; |
| 2 | |
| 3 | // A plain Foldkit view function styled with Tailwind utility classes. |
| 4 | export const card = <Message>( |
| 5 | h: HtmlBuilder<Message>, |
| 6 | props: { title: string; body: string }, |
| 7 | ): Html => |
| 8 | h.div( |
| 9 | [h.Class("mt-6 max-w-md rounded-xl border border-slate-200 bg-white p-6 shadow-sm")], |
| 10 | [ |
| 11 | h.h2([h.Class("text-lg font-semibold")], [props.title]), |
| 12 | h.p([h.Class("mt-2 text-slate-600")], [props.body]), |
| 13 | ], |
| 14 | ); |