Content v1.0.0

Code Block

Syntax-highlighted code display with optional filename header and copy-to-clipboard functionality.

Preview & Code

Options

Name Type Default Description
code * String required The code content to display
language String "text" Programming language for syntax highlighting (e.g., "ruby", "javascript")
filename String nil Optional filename to show in header
show_copy Boolean true Whether to show the copy button
class String "" Additional CSS classes to apply

Changelog v1.0.0

- Initial release with syntax highlighting
- Copy to clipboard functionality
- Optional filename header

Get Full Access

Unlock the source code for this component and all others. One-time payment for lifetime access.

Get Access Now