summaryrefslogtreecommitdiffstats
path: root/src/ui/objects/FigureCaption.tsx
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2026-07-22 19:40:59 +0200
committerVolpeon <git@volpeon.ink>2026-07-22 19:40:59 +0200
commitc1e28224aa2e1450031669d9a7e359b63e04687d (patch)
tree68f3d8905c763a91f68001d868197effa92adafa /src/ui/objects/FigureCaption.tsx
downloadcorvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.gz
corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.bz2
corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.zip
Init
Diffstat (limited to 'src/ui/objects/FigureCaption.tsx')
-rw-r--r--src/ui/objects/FigureCaption.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/objects/FigureCaption.tsx b/src/ui/objects/FigureCaption.tsx
new file mode 100644
index 0000000..4112170
--- /dev/null
+++ b/src/ui/objects/FigureCaption.tsx
@@ -0,0 +1,11 @@
1import type { HTMLAttributes } from "corvos/plugins/jsx.ts";
2
3export type Props = HTMLAttributes<"figcaption"> & {
4 children?: JSX.Element;
5};
6
7export const FigureCaption = ({ children, class: cls, ...props }: Props) => (
8 <figcaption class:list={["o-figure__caption", cls]} {...props}>
9 {children}
10 </figcaption>
11);