mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
Merge 389d0cdc2f into 298a8857c7
This commit is contained in:
commit
a1160aee36
1 changed files with 2 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import * as React from "react"
|
||||
import Image from "next/image"
|
||||
import Image, { ImageProps } from "next/image"
|
||||
import { useMDXComponent } from "next-contentlayer/hooks"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
|
@ -91,14 +91,7 @@ const components = {
|
|||
{...props}
|
||||
/>
|
||||
),
|
||||
img: ({
|
||||
className,
|
||||
alt,
|
||||
...props
|
||||
}: React.ImgHTMLAttributes<HTMLImageElement>) => (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img className={cn("rounded-md border", className)} alt={alt} {...props} />
|
||||
),
|
||||
Image: (props: ImageProps) => <Image {...props} />,
|
||||
hr: ({ ...props }) => <hr className="my-4 md:my-8" {...props} />,
|
||||
table: ({ className, ...props }: React.HTMLAttributes<HTMLTableElement>) => (
|
||||
<div className="my-6 w-full overflow-y-auto">
|
||||
|
|
@ -147,7 +140,6 @@ const components = {
|
|||
{...props}
|
||||
/>
|
||||
),
|
||||
Image,
|
||||
Callout,
|
||||
Card: MdxCard,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue