feat: add style to code
This commit is contained in:
parent
0388c9c904
commit
021729096d
@ -17,6 +17,12 @@ import ComponentsButton from "./docs/components/Button.mdx";
|
|||||||
|
|
||||||
const overrideComponents = {
|
const overrideComponents = {
|
||||||
pre: (props: any) => <pre {...props} className={`${props.className} hljs`} />,
|
pre: (props: any) => <pre {...props} className={`${props.className} hljs`} />,
|
||||||
|
code: (props: any) => (
|
||||||
|
<code
|
||||||
|
{...props}
|
||||||
|
className={`${props.className} rounded-md bg-neutral-800 text-orange-500 font-light p-1`}
|
||||||
|
/>
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
const router = createBrowserRouter(
|
const router = createBrowserRouter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user