• Stars
    star
    1,398
  • Rank 33,617 (Top 0.7 %)
  • Language
    TypeScript
  • Created about 2 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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