diff options
Diffstat (limited to 'src/ui/objects/CardFooter.tsx')
| -rw-r--r-- | src/ui/objects/CardFooter.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/objects/CardFooter.tsx b/src/ui/objects/CardFooter.tsx new file mode 100644 index 0000000..63d74d0 --- /dev/null +++ b/src/ui/objects/CardFooter.tsx | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | import type { HTMLTag, Polymorphic } from "corvos/plugins/jsx.ts"; | ||
| 2 | |||
| 3 | export type Props<Tag extends HTMLTag> = Polymorphic<{ | ||
| 4 | as?: Tag; | ||
| 5 | }>; | ||
| 6 | |||
| 7 | export const CardFooter = <T extends HTMLTag = "div">({ | ||
| 8 | as: Tag = "div" as T, | ||
| 9 | class: cls, | ||
| 10 | ...props | ||
| 11 | }: Props<T>) => <Tag class:list={["o-card__footer", cls]} {...props} />; | ||
