Skip to content

tys.elements()

Method@tryyoursize/sdk

Creates an elements group: the appearance and language shared by the elements you create from it.

elements(options?: ElementsOptions): Elements;
optionsElementsOptionsOptional
Properties
appearanceAppearanceOptional

Look and feel. By default (theme: "inherit") elements take your page's font and colours. See Appearance(/reference/web/appearance/).

localeLocaleOptional

Elements: An Elements group: create(), getElement(), update().

const elements = tys.elements({
appearance: { variables: { colorPrimary: "#3b2f26", borderRadius: 10 } },
locale: "auto",
});

Was this page helpful?