[go: nahoru, domu]

Skip to content

React Server Component for syntax highlighting

Notifications You must be signed in to change notification settings

joshwcomeau/bright

 
 

Repository files navigation

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

About

React Server Component for syntax highlighting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.5%
  • JavaScript 38.0%
  • MDX 3.0%
  • CSS 1.5%