React Server Component for syntax highlighting
See the codethe future is bright
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
MIT
(top 24 of 51)
3,234 followers · starred Jul 2023
441 followers · starred Jan 2023
2,636 followers · starred May 2024
1,485 followers · starred Feb 2023
React Server Component for syntax highlighting
See the codethe future is bright
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
MIT
(top 24 of 51)
3,234 followers · starred Jul 2023
441 followers · starred Jan 2023
2,636 followers · starred May 2024
1,485 followers · starred Feb 2023