0.5.3 • Published 2 years ago
use-hangul-typewriter v0.5.3
use-hangul-typewriter
react hook for hangul typewriter effect
install
npm install use-hangul-typewriter
peer dependency
- react
- hangul-js
usage
const Typewriter = ({}) => {
const texts = ['한글 자소를 분리하여 타이핑', '오늘 날씨는 흐림', '봄 여름 가을 겨울'];
const [text, toggle, reset, pause, resume] = useHangulTypewriter(texts);
return <span>{text}</span>;
};
parameters
Property | Type | Description | Default |
---|---|---|---|
texts | string[] | texts to display | [] |
interval | number | interval between typing a character | 100 |
waitingInterval | 3000 | waiting interval after a single line of text is fully entered and before the line is about to start to erase | 3000 |
caret | string | caret to display | ▎ |
0.5.3
2 years ago
0.5.0
2 years ago
0.5.2
2 years ago
0.5.1
2 years ago
0.4.2
2 years ago
0.3.0
3 years ago
0.4.1
3 years ago
0.4.0
3 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.7
4 years ago
0.1.6
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago