Snippet
The Snippet component is used to display a code snippet with syntax highlighting. It can be customized with a symbol before the content and a language for syntax highlighting. The component is also copyable with a CopyButton included by default.

- Library
- Lobe UI
- Framework
- React
- Type
- component
- License
- MIT
- Install
pnpm add @lobehub/ui- Files
src/Snippet/index.tssrc/Snippet/Snippet.tsxsrc/Snippet/stable.tssrc/Snippet/style.csssrc/Snippet/style.tssrc/Snippet/type.tssrc/Flex/index.tssrc/Flex/Center.tsx
- Source
- https://github.com/lobehub/lobe-ui