Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-hike/bright
React Server Component for syntax highlighting
https://github.com/code-hike/bright
react-server-components syntax-highlighting
Last synced: 4 days ago
JSON representation
React Server Component for syntax highlighting
- Host: GitHub
- URL: https://github.com/code-hike/bright
- Owner: code-hike
- Created: 2022-09-07T11:08:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T16:50:17.000Z (5 months ago)
- Last Synced: 2024-10-29T15:34:59.700Z (3 months ago)
- Topics: react-server-components, syntax-highlighting
- Language: TypeScript
- Homepage: https://bright.codehike.org
- Size: 1.98 MB
- Stars: 1,442
- Watchers: 5
- Forks: 20
- Open Issues: 18
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome - code-hike/bright - React Server Component for syntax highlighting (TypeScript)
- my-awesome-list - bright - hike | 1508 | (TypeScript)
README
> the future is bright
## Usage
```bash
npm install bright
```Use it from a **server component**, for example in Next.js `app/page.js`:
```js
import { Code } from "bright"export default function Page() {
returnprint("hello brightness")
}
```Docs: https://bright.codehike.org
## Credits
- Thanks [LEI Zongmin](https://github.com/leizongmin) for providing the bright npm package name
## License
MIT