@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

Dependents (0)

Package Sidebar

Install

npm i @hashicorp/hashi-code-block

Weekly Downloads

2

Version

1.2.0

License

none

Unpacked Size

8.36 kB

Total Files

4

Last publish

Collaborators

  • abhishek-hashicorp
  • dstaley
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • mwickett
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • kstraut
  • mocohen
  • dhaulagiri