chore(ui,icons,ui-preset,toolbox): Move design system packages to monorepo (#5470)
This commit is contained in:
committed by
GitHub
parent
71853eafdd
commit
e4ce2f4e07
22
packages/design-system/ui/src/components/code/code.tsx
Normal file
22
packages/design-system/ui/src/components/code/code.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { clx } from "@/utils/clx"
|
||||
import * as React from "react"
|
||||
|
||||
const Code = React.forwardRef<
|
||||
HTMLElement,
|
||||
React.ComponentPropsWithoutRef<"code">
|
||||
>(({ className, ...props }, ref) => {
|
||||
return (
|
||||
<code
|
||||
ref={ref}
|
||||
className={clx(
|
||||
"border-ui-tag-neutral-border bg-ui-tag-neutral-bg text-ui-tag-neutral-text txt-compact-small inline-flex rounded-md border px-[6px] font-mono",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
Code.displayName = "Code"
|
||||
|
||||
export { Code }
|
||||
Reference in New Issue
Block a user