New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-interactive-code-block

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-interactive-code-block

React interactive code block component

latest
Source
npmnpm
Version
1.2.6
Version published
Maintainers
1
Created
Source

React Interactive Code Block Component

NPM JavaScript Style GuideLicense Known VulnerabilitiesDownloads

Reusable interactive code block component for React. Here you can find a live demo.

Install

npm install --save react-interactive-code-block

or

yarn add -D react-interactive-code-block

Usage

import CodeBlock from 'react-interactive-code-block'
import 'react-interactive-code-block/dist/index.css'

class Example extends Component {
  render() {
    return <CodeBlock
      message={'Interactive code block 😄'}
      typing
      speed={30}
      />
  }
}

Props

nametypeisRequireddefaultdescription
messagestringN/Atext shown in container
typingboolfalsetyping effect
speednumber-1velocity of the typing effect, requires typing
iconstringiconcopy icon
classNamestringundefinedclassName of the container
styleobject{}custom styles

Examples

License

MIT © mecm1993

FAQs

Package last updated on 07 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts