BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/duck/code-snippet

Code Snippet

duck/code-snippet
UnverifiedComponent

Self-highlighting code block with six color schemes, line numbers, line highlighting, collapsing, wrapping and PNG export. The highlighter is local, so there is no async theme load and no flash of unstyled code.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/davide97g/duck-ui/main/public/r/code-snippet.json
This registry does not serve an item endpoint we could read, so we hold its metadata but not its source.

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @duck/theme
  • @duck/copy-button

Files it writes

  • registry/duck/ui/code-snippet.tsx
  • registry/duck/ui/code-highlight.ts

Facts

Registry
duck
Type
registry:ui
Access
Unverified
Files written
2
Licence
MIT
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

duckui.davideghiotto.it davide97g/duck-ui on GitHub Raw registry item This item as JSON

More from duck

All 45 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AnnouncementannouncementduckComponentsUnverified1 dep
Code Windowcode-windowduckComponentsUnverifiedno deps
Copy Buttoncopy-buttonduckComponentsUnverified1 dep
Duck Markduck-markduckComponentsUnverifiedno deps
Duck Media Sliderduck-media-sliderduckComponentsUnverifiedno deps
Duck Sliderduck-sliderduckComponentsUnverifiedno deps
Duck Spinnerduck-spinnerduckComponentsUnverifiedno deps · 2 files
Duck Switchduck-switchduckComponentsUnverifiedno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex