summaryrefslogtreecommitdiffstats
path: root/src/ui/objects/FigureCaption.tsx
blob: 4112170202602fb2be3a93f24d72107db1261492 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import type { HTMLAttributes } from "corvos/plugins/jsx.ts";

export type Props = HTMLAttributes<"figcaption"> & {
	children?: JSX.Element;
};

export const FigureCaption = ({ children, class: cls, ...props }: Props) => (
	<figcaption class:list={["o-figure__caption", cls]} {...props}>
		{children}
	</figcaption>
);