MCPcopy Create free account
hub / github.com/vercel/examples / Code

Function Code

internal/packages/ui/src/code.tsx:4–12  ·  view source on GitHub ↗
({ className, ...props }: HTMLAttributes<HTMLElement>)

Source from the content-addressed store, hash-verified

2import clsx from 'clsx'
3
4export const Code = ({ className, ...props }: HTMLAttributes<HTMLElement>) => (
5 <code
6 className={clsx(
7 'text-code text-base whitespace-pre-wrap before:content-["`"] after:content-["`"]',
8 className
9 )}
10 {...props}
11 />
12)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected