Skip to content

🍪 A set of UI components & utilities to show your code beautifully.

License

Notifications You must be signed in to change notification settings

pheralb/code-blocks

@pheralb/code-blocks

A code-block UI component. Copy-Paste. Customizable.

Get Started   ✦   Components   ✦   Blocks   ✦   Contributing   ✦   License

@pheralb/code-blocks screenshot

Next.js Badge Tailwind CSS Badge React Badge TypeScript Badge Build Status GitHub stars GitHub issues

Features

  • 📋 Copy-Paste: Copy code with a single click, it's 100% yours.
  • 🎨 Customizable: Styled with Tailwind CSS, easily customize it to fit your design.
  • 📦 Components & Blocks: Basic structure and blocks for building your own code-block UI.
  • 🖌️ Shiki & Sugar-High: Choose your syntax highlighter.
  • ⚙️ shadcn/ui compatible: Add components and utilities using shadcn/ui CLI.

Contributing

We welcome contributions to enhance the functionality, design, and documentation of this project. To contribute, please read our Contributing Guide and Code of Conduct.

Development Setup

  1. Clone the repository:
git clone git@github.com:pheralb/code-blocks.git
cd code-blocks
  1. Install dependencies:
# Install pnpm globally if you haven't already:
npm i pnpm@latest -g

# Install project dependencies:
pnpm install
  1. Start the development server:
pnpm dev

Commands

  • pnpm dev: Start the development server for the docs website.
  • pnpm website:build-registry: Build the component and block registry.
  • pnpm website:build: Build the docs website for production.
  • pnpm website:build-cc: Build content using content-collections CLI.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

🍪 A set of UI components & utilities to show your code beautifully.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •