Type testers props

Property
Type
Description
collection-id or collection-slug

string Required

Identifier for collection

default-mode

'local' | 'global'

The mode refers to the toggle in the UI: Affect all styles. local mode has this toggle turned off by default, global turns it on

autofit

'true'

Set to true to make the sentence fit on one line. It will adjust to the width of the tester as the user changes their browser window. If the user changes the font size or edits content, autofitting is turned off for that tester

tags

string

Comma-separated list of tags. Will render only type testers that include these tags

exclude-tags

string

Commas-separate list of tags to exclude. Will exclude type testers that include these tags

features

string

Normally the exposed features come from the “OT features” field on the type testers tab of the collection, next to the type testers data. This allows you to override those selections, or set it to * to expose every available feature. Accepts comma-separated list of opentype feature codes to expose as options to users. (e.g. ss01,ss02,ss03) or *.