You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
316 B
9 lines
316 B
export interface CodeProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const Code = ({ children }: CodeProps): JSX.Element => (
|
|
<code className="relative rounded-sm bg-slate-100 px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-slate-900 dark:bg-slate-800 dark:text-slate-400">
|
|
{children}
|
|
</code>
|
|
);
|
|
|