charcell 0.1.0
mode

CodeBlock

lines of code on a wash, a double press selecting a line and a triple the block.

usage

example

code

import { CodeBlock } from 'charcell/react';

export function CodeBlockExample() {
  return (
    <CodeBlock
      code={
        "; the kickstand lot\nobject dumpster in room 'behind the kickstand'\nverb eyes: say-line ben woken-up-in-worse\nverb foot: start-script kick-the-dumpster\nverb mouth: say-line ben default-refusal  ; \"i'm not putting my lips on that.\""
      }
      label="the kickstand lot"
    />
  );
}

as text

at rest
                                                            
 ; the kickstand lot                                        
 object dumpster in room 'behind the kickstand'             
 verb eyes: say-line ben woken-up-in-worse                  
 verb foot: start-script kick-the-dumpster                  
 verb mouth: say-line ben default-refusal  ; "i'm not puttin
                                                            
vertical bar hover
                                                            
 ; the kickstand lot                                        
 object dumpster in room 'behind the kickstand'             
 verb eyes: say-line ben woken-up-in-worse                  
 verb foot: start-script kick-the-dumpster                  
 verb mouth: say-line ben default-refusal  ; "i'm not puttin
                                                            
step hover
                                                            
 ; the kickstand lot                                        
 object dumpster in room 'behind the kickstand'             
 verb eyes: say-line ben woken-up-in-worse                  
 verb foot: start-script kick-the-dumpster                  
 verb mouth: say-line ben default-refusal  ; "i'm not puttin
                                                            
horizontal bar hover
                                                            
 ; the kickstand lot                                        
 object dumpster in room 'behind the kickstand'             
 verb eyes: say-line ben woken-up-in-worse                  
 verb foot: start-script kick-the-dumpster                  
 verb mouth: say-line ben default-refusal  ; "i'm not puttin
                                                            
press
                                                            
 ; the kickstand lot                                        
 object dumpster in room 'behind the kickstand'             
 verb eyes: say-line ben woken-up-in-worse                  
 verb foot: start-script kick-the-dumpster                  
 verb mouth: say-line ben default-refusal  ; "i'm not puttin
                                                            

props

codestring
The code, as text.
labelstring
Names the scroll area for assistive technology.
wrapboolean
Wraps a long line at the block's edge, scrolling only down.
orientation'vertical' | 'horizontal' | 'both'= 'horizontal'
The axes that scroll; with wrap, only down.
fillboolean
Takes the height of its container, and scrolls within it.