value | number | string | — | value="Example" | 当前数值;无法解析的字符串按 0 处理 |
locales | string | "en-US" | locales="Example" | 传给 Intl.NumberFormat 的 locale |
format | Intl.NumberFormatOptions | {} | format={value} | 数字格式化选项 |
trend | TrendResolver | 0 | trend={value} | 明确变化趋势;0 时根据前后数值解析 |
motionRole | TextMotionRole | "auto" | motionRole={value} | 数值趋势的语义角色 |
transition | NumberFlowTransition | — | transition={value} | 覆盖滚轮时长 |
digits | Record<number, { max?: number }> | — | digits={digitsOptions} | 为指定数位声明循环上限,例如时间的十位 |
numberPosition | "left" | "right" | "right" | numberPosition="left" | children 相对数字的位置 |
rollDirection | RollDirection | "normal" | rollDirection={value} | 正常或反向解释趋势方向 |
loading | boolean | — | loading | 显示按当前文本宽度推导的 Skeleton |
skeleton | boolean | — | skeleton | 接入 Skeleton Context |
renderHints | RenderHints | — | renderHints={value} | 覆盖 Skeleton 形状与尺寸提示 |
respectMotionPreference | boolean | false | respectMotionPreference | 为 true 时遵守 reduced-motion 并立即提交最终数值 |
font | string | — | font="Example" | 数字字体;未传时继承容器字体 |
size | string | number | — | size="Example" | 数字字号;数字转换为 px,字符串可使用 SnowUI token 或 CSS 值 |
weight | string | number | — | weight="Example" | 数字字重;未传时继承容器字重 |
lineHeight | string | number | — | lineHeight="Example" | 根排版行高;内部滚轮仍使用独立 1em 裁切窗口 |
color | SnowUIColor | string | — | color="Example" | 最终文字颜色,未设置时继承容器 |
align | TextMotionAlign | — | align={value} | 数字内部对齐 |
motionColor | TextMotionColor | — | motionColor={value} | 全部目标字符从左到右依次回落的临时颜色;chromatic() 将完整彩谱连续铺满全部数位,包含保留数位、分隔符及格式化货币符号,不影响 children 附加内容 |
children | Snippet | — | <NumberFlow>Content</NumberFlow> | 数字左侧或右侧的附加内容 |