tangled
alpha
login
or
join now
esb.lol
/
alf
9
fork
atom
Bluesky's "Application Layout Framework"
9
fork
atom
overview
issues
pulls
1
pipelines
docs: update docblock for leading util
Eric Bailey
5 months ago
1b1909de
8406063f
+4
-1
1 changed file
expand all
collapse all
unified
split
src
utils
leading.ts
+4
-1
src/utils/leading.ts
···
9
9
* web, it will be a unitless string.
10
10
*
11
11
* Example:
12
12
-
* `leading(atoms.text_sm, atoms.leading_snug)` // => 17
12
12
+
* `leading({
13
13
+
* fontSize: 15,
14
14
+
* lineHeight: 1.2
15
15
+
* })` // => { lineHeight: 17 }
13
16
*/
14
17
export function leading(textStyle: TextStyle): Pick<TextStyle, 'lineHeight'> {
15
18
const lineHeight = textStyle?.lineHeight || tokens.lineHeight.snug