code-hike / bright

React Server Component for syntax highlighting
https://bright.codehike.org
1.43k stars 18 forks source link
react-server-components syntax-highlighting

the future is bright

Usage

npm install bright

Use it from a server component, for example in Next.js app/page.js:

import { Code } from "bright"

export default function Page() {
  return <Code lang="py">print("hello brightness")</Code>
}

Docs: https://bright.codehike.org

Credits

License

MIT