From c1e28224aa2e1450031669d9a7e359b63e04687d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Jul 2026 19:40:59 +0200 Subject: Init --- src/ui/objects/Figure.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/ui/objects/Figure.tsx (limited to 'src/ui/objects/Figure.tsx') diff --git a/src/ui/objects/Figure.tsx b/src/ui/objects/Figure.tsx new file mode 100644 index 0000000..7f5e20a --- /dev/null +++ b/src/ui/objects/Figure.tsx @@ -0,0 +1,13 @@ +import type { HTMLAttributes } from "corvos/plugins/jsx.ts"; + +export type Props = HTMLAttributes<"figure"> & { + children?: JSX.Element; + caption?: JSX.Element; +}; + +export const Figure = ({ children, caption, class: cls, ...props }: Props) => ( +
+ {children} + {caption &&
{caption}
} +
+); -- cgit v1.3.1