Skip to content

Commit

Permalink
Add truncated token input example (#191)
Browse files Browse the repository at this point in the history
* adds a truncated token input example

* corrects token example image alts

* adds info about token inputs with multiple lines
  • Loading branch information
mperrotti committed Jan 16, 2024
1 parent e21adb6 commit 47d9667
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/components/token.mdx
Expand Up @@ -169,6 +169,15 @@ Examples of interactions:
</Box>
</Box>

<Box display="flex" alignItems="flex-start" flexDirection={["column", "column", "column", "column", "row"]} sx={{gap: 4}}>
<img
width="456"
alt="two tokens and text that reads '+5' rendered in an input"
src="https://user-images.githubusercontent.com/2313998/139962783-e0e67ecf-65f0-4828-9b7c-fe51a79c81f5.png"
/>
<Box as="p" mt="0">If it would be overwhelming to show all of the tokens at once, you can choose to only show a specified number of tokens until the input is focused. This functionality can be used whether the tokens wrap to multiple lines or if they're constrained to a single line.</Box>
</Box>

## Tokens as a way to enter information

<Box
Expand Down

0 comments on commit 47d9667

Please sign in to comment.