diff options
| author | Volpeon <git@volpeon.ink> | 2026-07-22 19:40:59 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2026-07-22 19:40:59 +0200 |
| commit | c1e28224aa2e1450031669d9a7e359b63e04687d (patch) | |
| tree | 68f3d8905c763a91f68001d868197effa92adafa /src/ui/objects/PlaceholderBox.tsx | |
| download | corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.gz corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.bz2 corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.zip | |
Init
Diffstat (limited to 'src/ui/objects/PlaceholderBox.tsx')
| -rw-r--r-- | src/ui/objects/PlaceholderBox.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/objects/PlaceholderBox.tsx b/src/ui/objects/PlaceholderBox.tsx new file mode 100644 index 0000000..d64866f --- /dev/null +++ b/src/ui/objects/PlaceholderBox.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 PlaceholderBox = <T extends HTMLTag = "div">({ | ||
| 8 | as: Tag = "div" as T, | ||
| 9 | class: cls, | ||
| 10 | ...props | ||
| 11 | }: Props<T>) => <Tag class:list={["o-placeholder-box u-ta-center u-c-mute", cls]} {...props} />; | ||
