aboutsummaryrefslogtreecommitdiff
path: root/components/Code
diff options
context:
space:
mode:
Diffstat (limited to 'components/Code')
-rw-r--r--components/Code/index.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/Code/index.tsx b/components/Code/index.tsx
new file mode 100644
index 0000000..23e7a8b
--- /dev/null
+++ b/components/Code/index.tsx
@@ -0,0 +1,10 @@
+import React, { FC, CSSProperties } from 'react';
+
+interface CodeProps extends React.HTMLProps<HTMLSpanElement> {
+ style?: CSSProperties;
+}
+const Code: FC<CodeProps> = ({ children, style }) => {
+ return <code className='md-codespan' style={style}>{children}</code>;
+};
+
+export default Code;