Module
Halogen.Typewriter
- Package
- purescript-halogen-typewriter
- Repository
- qwbarch/halogen-typewriter
#Input Source
type Input :: (Type -> Type) -> Type
type Input m = { cursor :: ComponentHTML Action () m, cursorDelay :: Milliseconds, deleteDelay :: Milliseconds, initialMode :: Mode, jitter :: Effect Number, pauseDelay :: Milliseconds, typeDelay :: Milliseconds, words :: List String }
Configuration to initialize 'typewriter'.
#State Source
type State :: (Type -> Type) -> Type
type State m = { cursor :: ComponentHTML Action () m, cursorDelay :: Milliseconds, cursorHidden :: Boolean, deleteDelay :: Milliseconds, initialMode :: Mode, jitter :: Effect Number, mode :: Mode, outputText :: String, pauseDelay :: Milliseconds, running :: Boolean, typeDelay :: Milliseconds, words :: List String }
Internal state for 'typewriter'.
#Action Source
data Action
Internal actions for 'typewriter'.
Constructors
Initialize
Start the 'typewriter'. This should only be invoked internally. Running this on your own has unintended consequences.
UpdateState
Update the typewriter's state.
UpdateCursor
Update the typewriter's cursor visibility.
#defaultTypewriter Source
defaultTypewriter :: forall m. Input m
Default typewriter 'Input' parameters.
#typewriter Source
typewriter :: forall q m. MonadAff m => Component q (Input m) Output m
Typewriter component. For more info on how to use this as a child component, see here: https://purescript-halogen.github.io/purescript-halogen/guide/05-Parent-Child-Components.html
The typewriter is currently typing letters.