Component:
Code_block
Utilities
Code Block
Syntax-highlighted code block with language label and copy-to-clipboard button.
Installation
bash
mix aven_ui.add code_block
With language and copy
Preview
elixir
defmodule Hello do
def world do
"Hello, World!"
end
end
Notes
The copy button requires the CopyToClipboard JS hook from AvenUIHooks.