Files
e9e00c83-2457-43c5-a36b-1f3…/registry/components/TextNumberCount.json
2026-02-09 16:35:55 +00:00

39 lines
938 B
JSON

{
"name": "TextNumberCount",
"description": "Animated number counter that increments smoothly from a start to an end value.",
"constraints": {
"numberRules": {
"value": {
"required": true,
"example": 99.99
},
"startFrom": {
"required": false,
"example": 0
}
}
},
"propsSchema": {
"value": "number",
"startFrom?": "number",
"duration?": "number",
"format?": "Intl.NumberFormatOptions (notation excludes 'scientific' and 'engineering')",
"locales?": "string | string[] | Intl.Locale",
"prefix?": "string",
"suffix?": "string",
"animateOnScroll?": "boolean",
"threshold?": "number",
"className?": "string"
},
"usageExample": "",
"do": [
"Use for statistics displays",
"Use for achievement showcases"
],
"dont": [],
"editRules": {
"textOnly": true,
"layoutLocked": true,
"styleLocked": true
}
}