Skip to content

Commit

Permalink
fixed wrong heading levels
Browse files Browse the repository at this point in the history
  • Loading branch information
maxeth committed Oct 14, 2023
1 parent 454a6b5 commit 19b35d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/pages/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ return (

<br/>

### Custom Splitter
## Custom String Splitter

By default, strings placed inside the `sequence` are split character by character, to simulate keyboard-like typing. With he help of the `splitter` prop, it's possible to define a custom splitting of sequence strings.

#### Typing Word by Word
### Typing Word by Word

To create a word-level typing animation similar to ChatGPT or other AI chatbots, we can **split strings into single words**, rather than characters.

Expand All @@ -421,7 +421,7 @@ To create a word-level typing animation similar to ChatGPT or other AI chatbots,
/>
```

#### Typing Complex Characters
### Typing Complex Characters

As certain complex Unicode characters, like **emojis**, are internally represented as multiple characters in JavaScript, including them in our animation requires an advanced string splitter, such as [grapheme-splitter](https://www.npmjs.com/package/grapheme-splitter), capable of splitting those characters into *extended grapheme clusters* (single letters).

Expand Down

0 comments on commit 19b35d5

Please sign in to comment.