Text tokens define one single interface label, such as "Sign In" or "Register Here" .
Example Token Payload
This is what the text payload looks like:
{
"id": string
"name": string
"description": string
"tokenType": "Text"
"origin": ItemOrigin | null
"value": {
"text": string
"referencedToken": Text | null
}
}
Associated functions
You can use the following functions to retrieve text tokens from your design system:
- @ds.allTokens
- @ds.tokensByType (with "Text") attribute
- @ds.tokensByGroupId