MCPcopy Create free account
hub / github.com/editablejs/editable / InlineCode

Function InlineCode

apps/docs/src/components/mdx/inline-code.tsx:6–17  ·  view source on GitHub ↗
({ isLink, ...props }: JSX.IntrinsicElements['code'] & InlineCodeProps)

Source from the content-addressed store, hash-verified

4 isLink: boolean
5}
6function InlineCode({ isLink, ...props }: JSX.IntrinsicElements['code'] & InlineCodeProps) {
7 return (
8 <code
9 css={[
10 tw`inline text-code text-secondary dark:text-secondary-dark px-1 rounded-md no-underline`,
11 !isLink && tw`bg-gray-30 bg-opacity-10 py-px`,
12 isLink && tw`bg-highlight dark:bg-highlight-dark py-0`,
13 ]}
14 {...props}
15 />
16 )
17}
18
19export default InlineCode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…