summaryrefslogtreecommitdiffstats
path: root/src/ui/objects/CardFooter.tsx
blob: 63d74d0072c469007c3afea4663077c1b550b1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import type { HTMLTag, Polymorphic } from "corvos/plugins/jsx.ts";

export type Props<Tag extends HTMLTag> = Polymorphic<{
	as?: Tag;
}>;

export const CardFooter = <T extends HTMLTag = "div">({
	as: Tag = "div" as T,
	class: cls,
	...props
}: Props<T>) => <Tag class:list={["o-card__footer", cls]} {...props} />;