From 1b1909de4dcb3b05a7efbd33751f09ec7edd76da Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 23 Sep 2025 15:07:31 -0500 Subject: [PATCH] docs: update docblock for leading util --- src/utils/leading.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.51.2