Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Apr 26, 2024
1 parent f52167e commit 8b49a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ advisable.
#### `getLineProps`

You need to add a `line` property (type: `Token[]`) to the object you're passing to
`getLineProps`; It's also advisable to add a `key`.
`getLineProps`.

This getter will return you props to spread onto your line elements (typically `<div>s`).

Expand All @@ -277,7 +277,7 @@ The `className` will always contain `.token-line`.
#### `getTokenProps`

You need to add a `token` property (type: `Token`) to the object you're passing to
`getTokenProps`; It's also advisable to add a `key`.
`getTokenProps`.

This getter will return you props to spread onto your token elements (typically `<span>s`).

Expand Down

0 comments on commit 8b49a1b

Please sign in to comment.