code-hike / bright

React Server Component for syntax highlighting

Home Page:https://bright.codehike.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://bright.codehike.org


Languages

Language:TypeScript 58.0%Language:JavaScript 37.5%Language:MDX 3.0%Language:CSS 1.5%