@hashicorp/hashi-code-block

    1.2.0 • Public • Published

    Code Block

    A styled code block with clipboard functionality.

    Props

    • code (str) the code you want displayed
    • prefix (enum {"numbered", "dollar", "terminal"}) prefix for each line of code
    • language (enum {"go", "hcl", "javascript", "sentinel", "shell"}) syntax highlighting for code block

    Keywords

    none

    Install

    npm i @hashicorp/hashi-code-block

    DownloadsWeekly Downloads

    40

    Version

    1.2.0

    License

    none

    Unpacked Size

    8.36 kB

    Total Files

    4

    Last publish

    Collaborators

    • jpogran
    • ashleemboyer
    • _natmegs
    • thrashr888
    • amyrlam
    • melsumner
    • johncowen
    • mwickett
    • didoo
    • jescalan
    • zchsh
    • brandonromano
    • hcitsec
    • gregone
    • meirish
    • roaks3
    • jimmymerritello
    • enmod
    • kylemac
    • wkentdag
    • kaxcode
    • anubhavmishra-hashicorp
    • hashibot-web
    • cstitt-hashi
    • bkalow
    • kstraut
    • mocohen
    • dhaulagiri