What is a block variant?
A block variant is a specific mode of display for the content in your token block. For example, if you want to display your tokens in table in a token block, you simply choose the 'Table' block variant when adding the block to your documentation.
Token block supports several block variants for displaying your list of design tokens.
- Table
- Color stack
- Grid (1-4 columns)
- Color contrast grid
Change block variant
There are two ways to change the block's display variant.
- Hover on the token block
- Click the Menu icon
- Click Block variant
- Select the block variant you want to use to displaying your design tokens
Alternatively:
- Hover on the token block
- In the menu on top of the block, click the Block variant dropdown
- Select the desired block variant from the list shown
