bright icon indicating copy to clipboard operation
bright copied to clipboard

React Server Component for 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

  • Thanks LEI Zongmin for providing the bright npm package name

License

MIT