check
Code copied to clipboard.
close
menu

Types

Overview

LiftKit for TypeScript uses types to enforce correct values and formatting for tokens and config objects passed as props.

Certain components may define local types when their interpretation of something global differs in a significant way. For example, the Section component redefines spacing because "xs" in reference to Section spacing is a different computed value than the "xs" from the globally-defined LkSizeUnit.

Global

Defined globally under /lib/types.

Local

Types defined local to a specific component or other utility file.