Components / CodeBlock

CodeBlock

A command to copy.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn code_block() -> impl View {
    CodeBlock::new("cargo add ravenrs")
}

Open in the playground, with every example →

Full API of CodeBlock →