Skip to content

Commit

Permalink
docs: fix default values for min and max prop of NumberInput (#6485)
Browse files Browse the repository at this point in the history
* docs: fix wrong default values

* chore: add changeset
  • Loading branch information
m4x3d committed Aug 15, 2022
1 parent 9cf1620 commit 96bf719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-elephants-divide.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/counter": patch
---

Fix default values for min and max prop in docs
4 changes: 2 additions & 2 deletions packages/counter/src/use-counter.ts
Expand Up @@ -33,12 +33,12 @@ export interface UseCounterProps {
step?: number
/**
* The minimum value of the counter
* @default -Infinity
* @default Number.MIN_SAFE_INTEGER
*/
min?: number
/**
* The maximum value of the counter
* @default Infinity
* @default Number.MAX_SAFE_INTEGER
*/
max?: number
/**
Expand Down

1 comment on commit 96bf719

@vercel
Copy link

@vercel vercel bot commented on 96bf719 Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.