Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 0dd046c

Browse files
Merge pull request #260 from kurotanshi/fix-CButton-prop-validator
chore: Fixes props validator issue with CBotton component
2 parents eb3cf70 + 32b6b6b commit 0dd046c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/chakra-ui-core/src/CButton/utils/button.props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const buttonProps = {
3333
size: {
3434
type: String,
3535
default: 'md',
36-
validator: value => value.match(/^(sm|md|lg)$/)
36+
validator: value => value.match(/^(xs|sm|md|lg|xl)$/)
3737
},
3838
loadingText: {
3939
type: String,

0 commit comments

Comments
 (0)