summaryrefslogtreecommitdiffstats
path: root/src/ui/objects/ContentImage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/objects/ContentImage.tsx')
-rw-r--r--src/ui/objects/ContentImage.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/objects/ContentImage.tsx b/src/ui/objects/ContentImage.tsx
new file mode 100644
index 0000000..ef45f89
--- /dev/null
+++ b/src/ui/objects/ContentImage.tsx
@@ -0,0 +1,15 @@
1import type { ClassValue } from "corvos/deps/clsx.ts";
2import type { Props as ImageProps } from "corvos/plugins/images.ts";
3
4import { Image } from "corvos/plugins/images.ts";
5
6export type Props = Omit<ImageProps, "src"> & {
7 "src"?: string;
8 "img-class"?: ClassValue;
9};
10
11export const ContentImage = ({ src, "img-class": imgClass, ...props }: Props) => (
12 <a href={src} data-lightbox {...props}>
13 <Image src={src} width="1400" class:list={imgClass} />
14 </a>
15);