mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-30 06:04:20 +01:00
Styling share
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
createResource,
|
||||
} from "solid-js"
|
||||
import { codeToHtml } from "shiki"
|
||||
import styles from "./codeblock.module.css"
|
||||
import { transformerNotationDiff } from "@shikijs/transformers"
|
||||
|
||||
interface CodeBlockProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
||||
@@ -37,7 +38,7 @@ function CodeBlock(props: CodeBlockProps) {
|
||||
}
|
||||
})
|
||||
|
||||
return <div ref={containerRef} {...rest}></div>
|
||||
return <div ref={containerRef} class={styles.codeblock} {...rest}></div>
|
||||
}
|
||||
|
||||
export default CodeBlock
|
||||
|
||||
Reference in New Issue
Block a user