1.0.3 • Published 11 months ago

@reusable-ui-tr/react-type-writer-effect v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

ReusableUITR React component for typewriter effect

A React component for creating a typewriter effect with customizable options.

Demo

Click here for a live demo.

Installation

  1. Install '@reusable-ui-tr/react-type-writer-effect' with npm
npm i @reusable-ui-tr/react-type-writer-effect
  1. Import TypeWriterEffect component in your react component
import TypeWriterEffect from "@reusable-ui-tr/react-type-writer-effect";
  1. Use 'TypeWriterEffect' component
<TypeWriterEffect
  blinkDuration="2s"
  cursorColor="blue"
  fontFamily="Lucida Console"
  fontSize="20px"
  highlightColor="green"
  text="Hello World!"
  textColor="white"
  textWrapperElementType="p"
  typingSpeed="slow"
/>

Properties

Property NameProperty TypeUsageDefault ValueRequired
blinkDurationStringBlink duration of typewriter effect in seconds or milliseconds (Example values: '1s', '10ms' etc.)'1s'no
cursorColorStringAll CSS legal color values are supported. (Example values: '#00ff00', #00ff0080, rgb(0, 255, 0), rgba(0, 255, 0, 0.3), hsl(120, 60%, 70%), hsla(120, 60%, 70%, 0.3), 'green' etc.)'black'no
fontFamilyStringFont family of the text'Roboto, Arial, sans-serif'no
fontSizeStringFont size of the text'16px'no
highlightColorStringHighlight color of the text'transparent'no
textStringContent of the textnoneyes
textColorStringAll CSS legal color values are supported. (Example values: '#00ff00', #00ff0080, rgb(0, 255, 0), rgba(0, 255, 0, 0.3), hsl(120, 60%, 70%), hsla(120, 60%, 70%, 0.3), 'green' etc.)'black'no
textWrapperElementTypeStringType of HTML element to wrap text (All HTML elements are valid)'code'no
typingSpeedStringTyping speed of typewriter effect (Only following keywords are valid: 'slowest', 'slow', normal', 'fast', 'fastest')'normal'no

Dependencies

Dev Dependencies

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago