diff --git a/src/utils/leading.ts b/src/utils/leading.ts index e9a8437..935ce56 100644 --- a/src/utils/leading.ts +++ b/src/utils/leading.ts @@ -9,7 +9,10 @@ import * as tokens from '../tokens' * web, it will be a unitless string. * * Example: - * `leading(atoms.text_sm, atoms.leading_snug)` // => 17 + * `leading({ + * fontSize: 15, + * lineHeight: 1.2 + * })` // => { lineHeight: 17 } */ export function leading(textStyle: TextStyle): Pick { const lineHeight = textStyle?.lineHeight || tokens.lineHeight.snug